Unselect table rows using esc key or click outside (#1420)

* unselect table rows by esc or clickoutside of tablebody

* exclude action-bar

* exclude context-menu

* added enums, handled touch listener
This commit is contained in:
Matthew
2023-09-05 03:56:07 -04:00
committed by GitHub
parent 732b5a5ddf
commit 7bced2b49b
5 changed files with 59 additions and 14 deletions

View File

@ -87,7 +87,8 @@ export function EntityBoard({
);
useListenClickOutsideByClassName({
className: 'entity-board-card',
classNames: ['entity-board-card'],
excludeClassNames: ['action-bar', 'context-menu'],
callback: unselectAllActiveCards,
});