Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do you use mirroredElem in Autocomplete...? #9

Open
vahanga opened this issue Dec 22, 2023 · 1 comment
Open

Why do you use mirroredElem in Autocomplete...? #9

vahanga opened this issue Dec 22, 2023 · 1 comment

Comments

@vahanga
Copy link

vahanga commented Dec 22, 2023

Hi Phuoc.

Just to say what a great collection you have. I found your Autocomplete solution via Google and it's great. I always strive for simplicity and I found other similar solutions where people use so much code for something quite straightforward, and then I found your excellent example :)

Now to my question. Why do you use mirroredEle in this solution? First I thought that you use it to show formatted text, ex to highlight replaced words with css. Can you explain your idea behind it, thanks?

@vahanga
Copy link
Author

vahanga commented Dec 22, 2023

Found the answer in your other post. You create a fake cursor with mirroredEle, nice idea :)
It would be great to add also some styling to the replaced words. That's something I will explore further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant