Skip to content

[IMP] topbar: number editor closes on right click#7944

Open
anhe-odoo wants to merge 2 commits intomasterfrom
master-topbar-number_editor-context_menu-anhe
Open

[IMP] topbar: number editor closes on right click#7944
anhe-odoo wants to merge 2 commits intomasterfrom
master-topbar-number_editor-context_menu-anhe

Conversation

@anhe-odoo
Copy link
Contributor

@anhe-odoo anhe-odoo commented Feb 12, 2026

Task Description

Currently, if we right-click on the zoom editor, then on the font size editor and then somewhere else, we will end with both number editors open and a context menu from the last click. This commit aims to fix this behavior for all the menus/popovers/widgets that rely on the click detection to close their submenu/subpopover, extending this behavior to the right-click as well

Related Task

@robodoo
Copy link
Collaborator

robodoo commented Feb 12, 2026

Pull request status dashboard

@anhe-odoo anhe-odoo force-pushed the master-topbar-number_editor-context_menu-anhe branch 2 times, most recently from ee2bb63 to 29f9719 Compare February 16, 2026 07:58
@anhe-odoo anhe-odoo changed the title wip [IMP] topbar: number editor closes on right click Feb 16, 2026
@anhe-odoo anhe-odoo force-pushed the master-topbar-number_editor-context_menu-anhe branch from 29f9719 to 7a120cc Compare February 17, 2026 15:37
Comment on lines +43 to +44
useExternalListener(window, "click", this.closePicker);
useExternalListener(window, "contextmenu", this.closePicker, { capture: true });
Copy link
Contributor

@hokolomopo hokolomopo Feb 24, 2026

Choose a reason for hiding this comment

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

rich clicking inside a color picker popover will close it now. That's probably now what we want ?

It should work fine for the components where we use isChildEvent in the external click handler. Not on the one where we were relying on a t-on-click.stop="" like the color picker.

Task Description

Currently, if we right-click on the zoom editor, then on the font
size editor and then somewhere else, we will end with both number
editors open and a context menu from the last click. This commit
aims to fix this behavior for all menu/popover/widget that listen
to the click to closes menus/popover, extanding the listening to
the right-click as well.

Related Task

Task: 5900107
@anhe-odoo anhe-odoo force-pushed the master-topbar-number_editor-context_menu-anhe branch from 7a120cc to 59ed6f5 Compare February 27, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants