You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The polymer gestures modules prevents programmatic clicks on mobile browsers. This is due to the fact that their event detection mechanism doesn't correctly detect the click events.
There is an open issue Polymer/polymer#5289 but I don't know if it will be solved anytime soon.
The lion project doesn't officially have anything to do with polymer, but we use lion-web and polymer in hybrid applications.
Possible solutions I can think of:
Call window.Polymer.Gestures.resetMouseCanceller(); before calling .click();
Ensure that the button we call .click() on is a child of ing-button, so that the detection works properly
Fire input.dispatchEvent(new MouseEvent('click', { bubbles: false })) instead of a click
Any other ideas?
The text was updated successfully, but these errors were encountered:
LarsDenBakker
changed the title
[button] programmatic clicks are problematic with polymer
[button] programmatic clicks are don't work on mobile browsers when combined with polymer
May 3, 2019
LarsDenBakker
changed the title
[button] programmatic clicks are don't work on mobile browsers when combined with polymer
[button] programmatic clicks don't work on mobile browsers when combined with polymer
May 3, 2019
The polymer gestures modules prevents programmatic clicks on mobile browsers. This is due to the fact that their event detection mechanism doesn't correctly detect the click events.
There is an open issue Polymer/polymer#5289 but I don't know if it will be solved anytime soon.
The lion project doesn't officially have anything to do with polymer, but we use lion-web and polymer in hybrid applications.
Possible solutions I can think of:
window.Polymer.Gestures.resetMouseCanceller();
before calling.click()
;.click()
on is a child ofing-button
, so that the detection works properlyinput.dispatchEvent(new MouseEvent('click', { bubbles: false }))
instead of a clickAny other ideas?
The text was updated successfully, but these errors were encountered: