-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Do not delete on focus but on start of typing #92
Comments
+1 to this. Note that it's now the default behavior of Firefox & Chrome with the HTML5 placeholder attribute. I think this plugin should, if possible, have the same behavior as it's much more usable. |
Agreed! I would also like it better if it worked that way. |
Seconding this, since behaviour consistency should be a primary interest for a polyfill |
+1 from me as well. |
+1 |
1 similar comment
+1 |
really required feature! |
+1 any hope of this happening? |
In the pipeline - #120 |
👍 |
+1, feature still needed! :) |
To trigger the feature, call the placeholder plugin with an object that sets a preserveOnFocus property to true. Real documentation coming after I fix a couple issues with cursor placement.
No idea if this will get merged, but I think I have a pretty solid implementation in my preserve-on-focus branch. Hope this helps those of you who are looking for something similar. |
Was anything similar to @mlms13 fork added to this library? Why was it closed and not merged? |
@gudmundurmar I don't think it was ever merged. When they changed the default branch from The PR was open for about a year, but it was kind of a lot of work to keep it up-to-date with master, so eventually I stopped maintaining my fork. The PR is here if anyone else wants to tackle it: #209 |
+1 |
1 similar comment
+1 |
Great script, thank you for this.
Because of auto focus on start, its important for me not to delete placeholder before starting with typing. Is it possible to rewrite it to delete placeholder on type instead focus ?
Thanks again,
great script.
The text was updated successfully, but these errors were encountered: