fix: priorytet ESC i zatrzymanie propagacji w modalach

This commit is contained in:
2026-02-12 13:58:28 +01:00
parent c197445f35
commit d7e104c17a
4 changed files with 22 additions and 13 deletions

View File

@@ -28,6 +28,8 @@ const handleClose = () => {
const handleKeyDown = (e) => {
if (e.key === 'Escape') {
e.stopImmediatePropagation?.();
e.preventDefault?.();
handleClose();
}
};