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

only use 1 textarea ever #1

Open
jonathanong opened this issue Feb 18, 2014 · 3 comments
Open

only use 1 textarea ever #1

jonathanong opened this issue Feb 18, 2014 · 3 comments

Comments

@jonathanong
Copy link
Contributor

probably be faster than creating/removing a phantom element all the time

@ghost
Copy link

ghost commented Feb 18, 2014

maybe create the div+span combo per textarea and only remove them when the textarea is removed from DOM.

@dandv
Copy link
Member

dandv commented Mar 13, 2014

I tried reusing the mirror div and the computed object - can't perceive a speed difference with reusing them vs. not.

@jonathanong
Copy link
Contributor Author

it might only matter when there are a lot of textareas... but yeah, an over optimization if at all

dandv referenced this issue Mar 14, 2014
alalonde pushed a commit to convergencelabs/textarea-caret-position that referenced this issue Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants