-
Notifications
You must be signed in to change notification settings - Fork 295
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
Selector plugin gets confused on IE9 and IE10 #733
Comments
IE9 and 10 have a bug where clicking a link that does not preventDefault but also does not navigate to another page or anchor can do some pretty crazy things to event listeners, making them fire for the wrong events. I bet that's what you're running into here. If this isn't happening in IE11, that's a great sign. I forgot whether they had fixed it at some point but it sounds like maybe they have. We ran into the same thing in another issue several months back: #379 (comment) |
You're right, you're describing exactly the problem we're seeing. We also saw event listeners get hosed, resulting in much worse errors than just incorrectly-denoted selections. That test case just seemed to be the simplest example. We actually ended up finding a workaround similar to what you mention (we used e.preventDefault() and used a listener to execute our JS as opposed to inlining it in an href). But I didn't know if that was the best solution, and felt more like a band-aid than a real fix. Good to see some confirmation that it's indeed a browser bug! :) FWIW, this does appear to be resolved in IE11. I'll take the liberty of closing this out since it's effectively a duplicate. |
Is there documentation of this bug in IE somewhere? I'm not really a Microsoft guy, but I tried looking in Connect and MSDN in general, in addition to the typical Google search, but didn't come up with anything. |
I never found anything other than http://social.msdn.microsoft.com/Forums/ie/en-US/99665041-557a-4c5f-81d8-a24230ecd67f/ie10-dispatchevent-calls-wrong-listeners (which, by fun coincidence, was posted by another Dojo committer). If there is an official bug somewhere I'm not aware of it. |
Circuitous, but there is a bug report at https://connect.microsoft.com/IE/feedback/details/802397/ie9-ie10-events-can-be-sent-to-the-wrong-listeners |
It seems you can confuse a checkbox selector, and get it out of sync with the actual Grid selection, in IE9 and 10. I cannot reproduce this in IE11 RC, Chrome, Firefox, or Opera.
Below is a relatively simple test case. There are some JSP scriptlets in there that allowed me to test with different dgrid versions via a query parameter. It appears that this bug occurs in dgrid 0.3.2 all the way through 0.3.10.
Note that the bug doesn't always occur with the same steps, but you get it by fiddling with the "select all" and individual checkboxes of the selection column, and clicking one of the hyperlinks in the process. For example:
Again, sometimes this workflow doesn't cause the bug, but if it doesn't, just check and uncheck stuff a few times, clicking on the link in between. You'll get it within 5 or so attempts.
The text was updated successfully, but these errors were encountered: