-
Notifications
You must be signed in to change notification settings - Fork 48
Paper-items with child elements require two clicks to select in Firefox #31
Comments
This also happens in Safari. |
/sub, happens on Safari and Firefox on my side too. |
Here's a JSBin You can see this visually in the demo - to reproduce:
|
I think the problem is whether you click on the child or the paper-item itself. It's much easier to reproduce by:
Bleh. @cdata |
Also paging in @azakus in case this is a gestures bug |
It seems like there's some state sticking around after they are first selected. First click on any item works fine. Subsequent attempts to click exhibit problem of requiring two clicks. The background highlight that does appear on the first click appears to be a focus related thing (i.e. the item gets focus, but doesn't select). Is there something going on in the focus handling that prevents the event bubbling perhaps? |
It doesn't look like the click event is actually occurring when the selection changes. This leads me to believe there may be something going on with event creation, like what @hawkett suggests. |
It's our stylings :( http://jsbin.com/licufenisi/edit?html,css,console,output |
Found a workaround for this issue by declaring For example: <paper-item>
<iron-icon icon="home"></iron-icon>
<span>Home</span>
</paper-item> paper-item iron-icon,
paper-item span {
pointer-events: none;
} |
Confirmed! thx @tehapo. Would it make sense for |
Duplicate of PolymerElements/paper-behaviors#34 |
@notwaldorf PolymerElements/paper-behaviors#34 is marked as fixed, however I still experience this issue with paper-menu. You can see it here (updated the example from @hawkett to work with the current Polymer version). |
Experienced exactly the same thing myself, had to click twice in safari. Fortunately style = "pointer-events: none;" fixed the problem:
|
@notwaldorf |
@gstroup Here is a jsbin with the latest versions of all the elements, and the original code that had the problem. Everything looks fine in Firefox: http://jsbin.com/hayivi/edit?html,output
|
@notwaldorf |
@gstroup Oh, just released |
@notwaldorf Nice!! Thank you. |
@notwaldorf I tried your last jsbin in Safari and it doesn't works. |
@abdonrd same problem here. Any update on this? Thanks. |
@flafuente no news for now. :/ |
@notwaldorf In the latest jsbin it looks like there are still issues when you click on the text of the menu items. If you click outside the text then it works fine. |
@jakemac53 Just tagged a new release, should be working now. (polygit doesn't update immediately so you'll have to use |
@bicknellr great seems to be working in FF |
Thanks @bicknellr! |
In Firefox, I find that I frequently have to double-click paper-items inside a paper-menu if the paper-item has children other than text. The first click activates the element the same way the arrow keys do, but the second click is required to actually select the element.
The text was updated successfully, but these errors were encountered: