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
{{ message }}
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
An overlay is opened by the on-click method of a button using toggle event of "iron-overlay-behavior" and when clicking on the same button to close the overlay to call the toggle event. The Cancel event of "iron-overlay-behavior" is triggered before the on-click method on emulated device mode and mobile devices on chrome. Same case is working fine on desktop.
code:
on-click="click"
click() {
this.$.element.toggle();
}
Expected outcome
Overlay needs to close on clicking the same button used for open on emulated device mode and mobile devices on chrome. i.e On-click event needs to be triggered 1st and then cancel event needs to be triggered
Actual outcome
Overlay opens on on-click events, but doesnt closes on calling the toggle event in on-click function on emulated device mode and mobile devices. i.e Cancel event is triggered before the On-click event.
Live Demo
Steps to reproduce
Example
Put a button which opens the overlay element on-click of it in the page.
In the on-click(), call the toggle event for the overlay i.e. this.$.element.toggle()
Open the page in a dev-tools with responsive mode(tablets,ipad) on chrome.
Click on the button, opens the overlay using the toggle().
Again, click on the same button to close the overlay with toggle().But,It doesn't closes it.
Browsers Affected
Chrome
Firefox
Safari 9
Safari 8
Safari 7
Edge
IE 11
IE 10
The text was updated successfully, but these errors were encountered:
chanshachans
changed the title
Cancel event of "iron-overlay-behavior" is triggered before the On-Click of the polymer element on emulated device mode and mobile devices
Cancel event of "iron-overlay-behavior" is triggered before the On-Click of the element on emulated device mode and mobile devices
Jun 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
An overlay is opened by the on-click method of a button using toggle event of "iron-overlay-behavior" and when clicking on the same button to close the overlay to call the toggle event. The Cancel event of "iron-overlay-behavior" is triggered before the on-click method on emulated device mode and mobile devices on chrome. Same case is working fine on desktop.
code:
on-click="click"
click() {
this.$.element.toggle();
}
Expected outcome
Overlay needs to close on clicking the same button used for open on emulated device mode and mobile devices on chrome. i.e On-click event needs to be triggered 1st and then cancel event needs to be triggered
Actual outcome
Overlay opens on on-click events, but doesnt closes on calling the toggle event in on-click function on emulated device mode and mobile devices. i.e Cancel event is triggered before the On-click event.
Live Demo
Steps to reproduce
Example
Browsers Affected
The text was updated successfully, but these errors were encountered: