chore(): sync with main

This commit is contained in:
Liam DeBeasi
2023-03-01 11:22:56 -05:00
74 changed files with 845 additions and 711 deletions

View File

@ -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);
}