Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7339 implement contextual actions inside the commandmenu #8000

Merged

Conversation

bosiraphael
Copy link
Contributor

Closes #7339

Enregistrement.de.l.ecran.2024-10-23.a.15.54.00.mov

@@ -43,5 +48,11 @@ export const RecordIndexActionMenuEffect = () => {
isDropdownOpen,
]);

useEffect(() => {
if (isRightDrawerOpen || isCommandMenuOpened) {
closeActionBar();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to openCommandMenu() and useOpenRightdrawer()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is done this way because multiple action bars could be opened simultaneously and since these are component states we can't know which ones we should close. To do that, we would need another state to store the active action menus.

@charlesBochet charlesBochet merged commit fe2c8bb into main Oct 29, 2024
21 of 22 checks passed
@charlesBochet charlesBochet deleted the 7339-implement-contextual-actions-inside-the-commandmenu branch October 29, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement contextual actions inside the CommandMenu
3 participants