-
Notifications
You must be signed in to change notification settings - Fork 48
opened-changed overservers gets triggered twice #99
Comments
@ktiedt, in our slack chat the other day you said this only occurs in Shadow DOM (not Shady), right? |
That sounds correct, I'm not able to test it today easily though to confirm.
|
I wanted to expand on this. I'm seeing a similar issue when the menu is set to open. , the menu requires two clicks to close. The first click appears to adjust the container's scroll position, then the second click causes the close. |
I've been out the past week, let me find where that code was used again and also verify that we have finally updated to a point where the fix is in our local code base, I can do this tomorrow. |
Sorry for the delay, was unable to reach Github to compare the code in question last Friday. Long story short, both of my problems still exist.
|
Due to iron-collapse also generating the same event, it bubbles up to the paper-submenu and triggers twice, and I am guessing due to event retargetting the target is set to paper-submenu each time...
We have to evaluate the event.path property to make sure we only listen to the actual submenu event. Below is the handler we use for on-opened-changed:
Note: Our need for this handler could be a side-effect of #88, after reading it, but I am not positive.
The text was updated successfully, but these errors were encountered: