nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] Events are not correctly propagated — global handlers cannot intercept them

Open barbu-vlad opened this issue 2 months ago • 1 comments

HeroUI Version

2.8.5

Describe the bug

Event propagation appears to be interrupted in certain components. Global event handlers (e.g., document .addEventListener) cannot intercept user interactions as expected.

Your Example Website or App

https://codesandbox.io/p/devbox/react-heroui-4gqp6t?file=%2Fapp%2FTestcomponent.tsx%3A20%2C73

Steps to Reproduce the Bug or Issue

Steps to Reproduce

Use any interactive component (e.g., Button, Switch, etc).

Attach a global event listener:

document.addEventListener('click', () => console.log('Global click!'))

Interact with the component.

Expected behavior

The global handler should log the event when the component is clicked.

Screenshots or Videos

No response

Operating System Version

Windows

Browser

Chrome

barbu-vlad avatar Oct 16 '25 15:10 barbu-vlad

ENG-2851

linear[bot] avatar Oct 16 '25 15:10 linear[bot]