-
Notifications
You must be signed in to change notification settings - Fork 6
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
Reentry detected in Edge #92
Comments
I see in the call stack that we are handling both input AND keydown in edge. I would have expected event.preventDefault(); to prevent this. |
This is also definitely the cause of #90 |
It appears that preventDefault isn't working because input event isn't cancelable (like the change event). So we need to do something else. This isn't a problem because Chrome doesn't trigger the input event on sliders. |
@mbarlow12 I verified that this doesn't impact the coulombs-law RC because handleInput was added to AccessibleSlider after SHAS for 1.0 were taken. |
While not strictly for phetsims/qa#221, I'm tagging it because this'll need to be addressed before publication. |
Setting the 'min' attribute is causing the And so is blur (sometimes). |
One potential fix is to block input events when changing the min and max attributes. After fuzz testing and manual testing I haven't been able to reproduce the bug. But this didn't fix #90 and I still think they may be related so Ill investigate that issue before commiting this. |
If I use "any" as the value for the step attribute, this problem goes away, see phetsims/sun#413 |
Input event is still triggered sometimes when range of slider updates. The flow of reentry is
|
The above commit blocks input events after capturing a keydown event, which is OK since |
For some reason, I am seeing reentry errors in master, but so far only in edge. Happens when updating the range of the objects.
My guess right now is that the flow is like
Assigning to @mbarlow12 because he is responsible dev, but also myself since I have easy access to Edge.
The text was updated successfully, but these errors were encountered: