mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
chore(): sync with main
This commit is contained in:
@ -525,6 +525,14 @@ export const dismiss = async <OverlayDismissOptions>(
|
||||
*/
|
||||
overlay.el.classList.add('overlay-hidden');
|
||||
overlay.el.style.removeProperty('pointer-events');
|
||||
|
||||
/**
|
||||
* Clear any focus trapping references
|
||||
* when the overlay is dismissed.
|
||||
*/
|
||||
if (overlay.el.lastFocus !== undefined) {
|
||||
overlay.el.lastFocus = undefined;
|
||||
}
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user