Skip to content

Commit

Permalink
chore: fix a linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Dec 8, 2023
1 parent b878c43 commit 2aa588e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/modes/treemode/JSONNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@
function handleMouseDown(event: MouseEvent & { currentTarget: EventTarget & HTMLDivElement }) {
// check if the mouse down is not happening in the key or value input fields or on a button
if (
(isContentEditableDiv(event.target as HTMLElement) ||
(event.which === 1 && isChildOfNodeName(event.target as Element, 'BUTTON'))) // left mouse on a button
isContentEditableDiv(event.target as HTMLElement) ||
(event.which === 1 && isChildOfNodeName(event.target as Element, 'BUTTON')) // left mouse on a button
) {
return
}
Expand Down

0 comments on commit 2aa588e

Please sign in to comment.