diff --git a/src/lib/components/modes/treemode/JSONNode.svelte b/src/lib/components/modes/treemode/JSONNode.svelte index 65785904..d7789fcb 100644 --- a/src/lib/components/modes/treemode/JSONNode.svelte +++ b/src/lib/components/modes/treemode/JSONNode.svelte @@ -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 }