Skip to content

Commit

Permalink
fix: dragging selection not disabled in readOnly mode
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Apr 5, 2022
1 parent 13b5f1d commit eac069a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/components/modes/treemode/JSONNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@
}
function handleDragSelectionStart(event) {
if (context.readOnly) {
return
}
const fullSelection = context.getFullSelection()
const selectionParentPath = initial(fullSelection.focusPath)
if (!isEqual(path, selectionParentPath)) {
Expand Down

0 comments on commit eac069a

Please sign in to comment.