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

Override native IE10+ placeholder behavior, disappearing text on focus #204

Closed
danielHalan opened this issue Apr 16, 2014 · 8 comments
Closed
Labels

Comments

@danielHalan
Copy link

modern IE native placeholder feature clears the text on Focus, which isnt so good when using JS to pre-select a textbox.

Is there a way to override this behavior? if not, would be a nice feature.

@mikealmond
Copy link

👍 I'd love to see this as well.

@jonathantower
Copy link

👍 Yes, this would be very helpful. Anyone managed to do this already?

@amerikan
Copy link
Collaborator

Seems like it's a bug in IE10:

I can see this happening in IE 10 for their native placeholder implementation. Haven't tried it in IE11 yet.

What can be done is to force IE10 to actually use the plugin's functionality even though it supports it natively already. We would have to determine when a browser is IE 10.

@danielHalan
Copy link
Author

Can verify that the bug still persists in latest IE11 (11.0.9600.17498)

@amerikan
Copy link
Collaborator

@danielHalan hmm. well we can add a option something like includeKeepOnFocus: true (the name probably needs more thought). With this option we can force IE 10/11 to use the plugin.

We need to find out how to determine if the user's browser is IE 10 or 11 to be able to do it. It would be best to determine it by using feature detection rather than by sniffing the browser's user agent. Any ideas?

@amerikan
Copy link
Collaborator

amerikan commented Mar 7, 2015

I'm going to say this is related to #92

@gabskoro
Copy link

gabskoro commented Apr 9, 2015

Argh, I need this feature now :)

@amerikan
Copy link
Collaborator

Closing, duplicate of #92

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

No branches or pull requests

5 participants