Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Apr 11, 2024
1 parent 64e905d commit 9340bfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/client/composables/useDragElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,9 @@ export function useDragElement(directive: DirectiveBinding | null, posRaw?: stri
watchStopHandles.push(
onClickOutside(container, (ev) => {
const container = document.querySelector('#drag-control-container')
if (container && ev.target && !container.contains(ev.target as HTMLElement))
state.stopDragging()
if (container && ev.target && container.contains(ev.target as HTMLElement))
return
state.stopDragging()
}),
watch(useWindowFocus(), (focused) => {
if (!focused)
Expand Down

0 comments on commit 9340bfb

Please sign in to comment.