Files
twenty/packages/twenty-front/src
Raphaël Bosi 051f0fc83f Use data attributes for click outside instead of classNames (#12228)
We previously used classnames to exclude elements from the click outside
listener.

With this PR we can now use `data-click-outside-id` instead of
`classNames` to target the elements we want to exclude from the click
outside listener.

We can also add `data-globally-prevent-click-outside` to a component to
globally prevent triggering click outside listeners for other
components. This attribute is especially useful for confirmation modals
and snackbar items.

Fixes #11785:


https://github.com/user-attachments/assets/318baa7e-0f82-4e3a-a447-bf981328462d
2025-05-22 18:10:51 +02:00
..
2025-01-03 15:18:02 +01:00
2025-05-13 11:28:22 +02:00
2025-04-15 16:11:31 +02:00
2025-05-22 14:22:54 +02:00
2025-04-04 16:13:48 +02:00