Skip to content

Commit

Permalink
fix: remove unnecessary function and revise lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueeest committed Apr 21, 2024
1 parent 4065f58 commit 6ac718b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions web/src/lib/components/shared-components/change-date.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,9 @@
dispatch('confirm', value);
}
};
const handleKeydown = (event: KeyboardEvent) => {
if (['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'].includes(event.key)) {
event.stopPropagation();
}
};
</script>

<div role="presentation" on:keydown={handleKeydown}>
<div role="presentation">
<ConfirmDialogue
id="edit-date-time-modal"
confirmColor="primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<FocusTrap>
<section
role="modal"
role="presentation"
in:fade={{ duration: 100 }}
out:fade={{ duration: 100 }}
class="fixed left-0 top-0 z-[9990] flex h-screen w-screen place-content-center place-items-center bg-black/40"
Expand Down

0 comments on commit 6ac718b

Please sign in to comment.