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.
When restore-focus-on-close is set, the restoreFocusNode loses focus when overlay closes on emulated device mode on Chrome and mobile devices. However, on desktop, restoreFocusNode focuses and can be seen with focus ring when overlay closes.
when tap event is fired, document.activeElement is not updated to be the element tapped yet (press ontap button and check the log), so you might want to set the tapped element to be focused (event.target.focus())
with onclick button, focus gets restored, but on the device simulator the outline appears and disappears (even on native elements - very weird); if you hit the TAB key you'll see the focus moves to the right next element.
with tap event, the button is not focused yet when we open the dialog
with click event, the button is focused before we open the dialog (good), is restored after the dialog gets closed, but then it gets blurred right after; that's because IronOverlayManager listens to tap in order to cancel the overlay. So what happens is that the tap outside the dialog closes it and restores the focus, but then the click still happens outside, causing the final blur
Description
When
restore-focus-on-close
is set, therestoreFocusNode
loses focus when overlay closes on emulated device mode on Chrome and mobile devices. However, on desktop,restoreFocusNode
focuses and can be seen with focus ring when overlay closes.Expected outcome
restoreFocusNode
focuses with visible focus ring.Actual outcome
restoreFocusNode
loses focus when overlay closes.Live Demo
http://jsbin.com/popukoruye/edit?html,output
Steps to reproduce
Browsers Affected
The text was updated successfully, but these errors were encountered: