You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So to conclude, under these circumstances it will not remove the pointerEvents = "none" 😢
Also I am curious why these awful hacks with the pointerEvents are necessary instead of just setting modal={false} on the DialogPrimitive.Root? Maybe this would break something else?
The text was updated successfully, but these errors were encountered:
Actually, I think the useControllableState works as expected. Its probably not great if the changing of the prop would cause the handleChange to be called (which would probably cause a loop).
So I guess the handleChange function should not contain any code with side effects meaning the current logic would have to be moved to a useEffect 🤔
This took me a while to trace down, but basically a Drawer that is controlled and has modal false e.g.:
and open is set from somewhere outside, it does not get to this line to hack the pointerEvents:
vaul/src/index.tsx
Line 187 in 5041029
because if the prop changes it does not get to this line to call the handleChange function here:
vaul/src/use-controllable-state.ts
Line 50 in 5041029
So to conclude, under these circumstances it will not remove the
pointerEvents = "none"
😢Also I am curious why these awful hacks with the pointerEvents are necessary instead of just setting
modal={false}
on theDialogPrimitive.Root
? Maybe this would break something else?The text was updated successfully, but these errors were encountered: