Skip to content

Commit

Permalink
chore: modal lint error (#422)
Browse files Browse the repository at this point in the history
# Motivation

Fix lint error:

>
/Users/daviddalbusco/projects/dfinity/gix-components/src/lib/components/Modal.svelte:35:28
> Error: Binding element 'key' implicitly has an 'any' type. (ts)
>
>  const handleKeyDown = ({ key }) => {
> // Check for $busy to mock the same behavior as the close button being
covered by the busy overlay
  • Loading branch information
peterpeterparker committed May 13, 2024
1 parent 5825901 commit 00a6efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
const modalTitleId = nextElementId("modal-title-");
const modalContentId = nextElementId("modal-content-");
const handleKeyDown = ({ key }) => {
const handleKeyDown = ({ key }: KeyboardEvent) => {
// Check for $busy to mock the same behavior as the close button being covered by the busy overlay
if (visible && !disablePointerEvents && !$busy && key === "Escape") {
close();
Expand Down

0 comments on commit 00a6efe

Please sign in to comment.