Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

Fix text selection bug

emilkowalski3532575416d7
diff --git a/src/index.tsx b/src/index.tsx
index 55ae297..cec3ea3 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -105,7 +105,6 @@ function Root({ open: openProp, defaultOpen, onOpenChange, children, shouldScale
// Don't drag if there's highlighted text
if (highlightedText.length > 0) {
- lastTimeDragPrevented.current = new Date();
return false;
}