[Bug]: Tabs and Resizable components do not work when I set e.preventDefault()
in the pointerdown
function
#847
Labels
bug
Something isn't working
Environment
Link to minimal reproduction
https://stackblitz.com/edit/9wnv28-rfdbwj?file=src%2FApp.vue
Steps to reproduce
MouseLeftDemo.mp4
Describe the bug
When I set window.addEventListener('pointerdown', function (e){e.preventDefault() }, false) anywhere on the page, clicking on Tabs or Resizable components doesn't respond.
In Radix-Vue TabsTrigger Source Code, I found the use of @mousedown.left. Through a demo, I discovered that setting it up like that indeed doesn't trigger mousedown.left in Vue. As a result, both components don't respond to clicks.
Expected behavior
No response
Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: