refac
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
|
||||
if (event.key === 'Enter') {
|
||||
console.log('Enter');
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
confirmHandler();
|
||||
}
|
||||
};
|
||||
@@ -81,6 +83,7 @@
|
||||
|
||||
onDestroy(() => {
|
||||
show = false;
|
||||
window.removeEventListener('keydown', handleKeyDown);
|
||||
if (focusTrap) {
|
||||
focusTrap.deactivate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user