-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
Input event triggered on Internet Explorer when placeholder changed #9070
Comments
@schnepe2 could you please create a simple playground example which shows the bug? |
Try it in IE and a "changeEvent" will immediately occur when you click into the input field (as soon as the placeholder text disappears). |
My current (ugly, 'cause it uses the 'internal' method
...placed somewhere at my |
a better way of handling this would be to change the detection code for css.placeholder. The method that would need changing is qx.bom.client.Css.getPlaceholder. If you can make the fix and submit a PR, we can get it included in the next release? |
...no I can't, sorry. By the way: I think you should not change the "css.placeholder" detection, it is correct (IE has this feature/attribute). |
From a short test http://tinyurl.com/zh8bvyt it seems that when the input field gets the first focus and the placeholder disappears, the value of the input field changes from null to an empty string. We could maybe prevent this by initializing the value of the input tag to an empty string? |
According to this post https://connect.microsoft.com/IE/feedback/details/856700/ie11-ie10-send-input-events-at-times-when-it-is-not-appropriate microsoft will never fix this in IE11 as Edge is the new browser. There will only be security fixes for IE11 for the future. |
I'll be happy to try in my applications code to check if it's enough. |
var input = new qx.ui.form.TextField().set({ input.addListener("changeValue", function (e) { var doc = this.getRoot(); |
Only IE11 Problem |
Done with #9895 |
In IE 11 (and others I think) the input event is fired when the placeholder is used and the displayed data changes. This causes change detection code like
to not work as expected anymore. The issue seems to be at Browser level:
https://connect.microsoft.com/IE/feedback/details/885747/ie-11-fires-the-input-event-when-a-input-field-with-placeholder-is-focused
https://connect.microsoft.com/IE/feedback/details/856700/ie11-ie10-send-input-events-at-times-when-it-is-not-appropriate
Is there a way to work around this issue unit it might be fixed by MS?
The text was updated successfully, but these errors were encountered: