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
Go to responsive mode from dev tools and select a mobile device. Try to toggle the box when the box is visible (when you are seeing the dark overlay). You will see that it's impossible to close the box.
Video_22-07-09_16-26-13.mp4
The component uses pointerdown instead of click to simulate an outclick event because of #4 and #6. If you try to solve this issue, please pay attention to those 2 issues too.
I've changed (pointerdown and pointerup) to (touchstart and touchend) and (mousedown and mouseup). When a touch event is triggered, we use touch events, otherwise we use mouse events. Meaning on touch devices (mobile/tablet), touch events will be used and on desktop (when touch is not available), mouse events will be used.
Link to REPL
Go to responsive mode from dev tools and select a mobile device. Try to toggle the box when the box is visible (when you are seeing the dark overlay). You will see that it's impossible to close the box.
Video_22-07-09_16-26-13.mp4
The component uses
pointerdown
instead ofclick
to simulate anoutclick
event because of #4 and #6. If you try to solve this issue, please pay attention to those 2 issues too.See the source code for the OutClick component
The text was updated successfully, but these errors were encountered: