Update drag-n-drop.tsx

pull/4084/head
bunsenstraat 1 year ago committed by GitHub
parent 3320e8b94c
commit 9a5f725059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      libs/remix-ui/drag-n-drop/src/lib/drag-n-drop.tsx

@ -88,10 +88,10 @@ export const Draggable = (props: DraggableType) => {
handleDrop(event) handleDrop(event)
}} }}
onDragStart={(event) => { onDragStart={(event) => {
if(destination && destination.path === '/'){ if (destination && destination.path === '/'){
event.preventDefault() event.preventDefault()
event.stopPropagation event.stopPropagation
}else } else
if (destination) { if (destination) {
handleDrag() handleDrag()

Loading…
Cancel
Save