Fix hover on table cells when the command menu is opened (#10446)
This PR allows the table cell hover to be accessible even when the command menu is opened. I extracted the hotkeys logic from `RecordTableCellSoftFocusMode` into `RecordTableCellSoftFocusModeHotkeysSetterEffect`. This component is mounted conditionally if the hotkey scope is `TableSoftFocus`. By doing so, the table cell hotkey scopes are not available when the command menu is opened. Before https://github.com/user-attachments/assets/f0925565-f00a-4962-b18d-3c1617f77dd0 After https://github.com/user-attachments/assets/49ec9195-3110-46d7-abb6-12854a8bb991 --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -45,7 +45,7 @@ export const RecordTableDecorator: Decorator = (Story) => {
|
||||
onOpenTableCell: () => {},
|
||||
onActionMenuDropdownOpened: () => {},
|
||||
onMoveFocus: () => {},
|
||||
onMoveSoftFocusToCell: () => {},
|
||||
onMoveSoftFocusToCurrentCell: () => {},
|
||||
onUpsertRecord: () => {},
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user