react-bootstrap / react-overlays

Utilities for creating robust overlay components
https://react-bootstrap.github.io/react-overlays
MIT License
897 stars 222 forks source link

Support useRootClose inside open shadow roots #1004

Closed charlesroelli closed 2 years ago

charlesroelli commented 2 years ago

useRootClose should inspect Event.composedPath() so that it can react correctly to events coming from an open shadow root.

In order to test this, it was also necessary to add a workaround for simulant which is creating events with composed: false by default.

charlesroelli commented 2 years ago

Lint errors should be fixed now.

kyletsang commented 2 years ago

Thanks!