Skip to content

Commit

Permalink
ELEMENTS-1481: delay showLabel set attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
richardsd committed Apr 21, 2022
1 parent 12190f8 commit eb8136d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ui/widgets/nuxeo-actions-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,15 @@ import './nuxeo-tooltip.js';

_moveToDropdown(el) {
el.slot = 'dropdown';
el.setAttribute('show-label', '');
/**
* XXX: in Chrome 100+, for some unknown reason, when moving action buttons to the dropdown menu
* and setting its visibility, messes up with any dialog that might be opened from clicking
* the actions (see ELEMENTS-1481).
* Delaying the set attribute here, is enough for Chrome to update the DOM correctly.
*/
setTimeout(() => {
el.setAttribute('show-label', '');
}, 0);
}

_layout(e) {
Expand Down

0 comments on commit eb8136d

Please sign in to comment.