Fix command menu selection (#10248)
- Created a state `hasUserSelectedCommandState` : This state is set to `true` when the user selects an element in the command menu list. It is set to false upon redirection or when the command menu is closed. - Modified `CommandMenuDefaultSelectionEffect` to have the expected selection behavior for the command menu
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
import { createState } from 'twenty-ui';
|
||||
|
||||
export const hasUserSelectedCommandState = createState({
|
||||
key: 'hasUserSelectedCommandState',
|
||||
defaultValue: false,
|
||||
});
|
||||
Reference in New Issue
Block a user