fix: preserve drawer on dialog escape
This commit is contained in:
@@ -112,7 +112,7 @@ export function createFavoritesDrawer(
|
||||
};
|
||||
|
||||
const onDocumentKeydown = (event: KeyboardEvent) => {
|
||||
if (event.key !== "Escape" || !isOpen) {
|
||||
if (event.key !== "Escape" || !isOpen || event.defaultPrevented) {
|
||||
return;
|
||||
}
|
||||
if (document.querySelector("[data-sces-favorite-folder-dialog]")) {
|
||||
|
||||
Reference in New Issue
Block a user