Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

fix autocomplete input bug (#244)

Emil Kowalskie92a5baf06c6
diff --git a/src/index.tsx b/src/index.tsx
index 81cb9d8..d3da611 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -486,10 +486,10 @@ function Root({
function onRelease(event: React.PointerEvent<HTMLDivElement>) {
if (!isDragging || !drawerRef.current) return;
- if (isAllowedToDrag.current && isInput(event.target as HTMLElement)) {
- // If we were just dragging, prevent focusing on inputs etc. on release
- (event.target as HTMLInputElement).blur();
- }
+ // if (isAllowedToDrag.current && isInput(event.target as HTMLElement)) {
+ // // If we were just dragging, prevent focusing on inputs etc. on release
+ // (event.target as HTMLInputElement).blur();
+ // }
drawerRef.current.classList.remove(DRAG_CLASS);
isAllowedToDrag.current = false;
setIsDragging(false);