Skip to content

Commit

Permalink
fix flex space item
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Apr 29, 2024
1 parent e718d13 commit d7d8a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/webcomponents/overflow-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ window.customElements.define('overflow-menu', class extends HTMLElement {

// move items in tippy back into the menu items for subsequent measurement
for (const item of this.tippyItems || []) {
if (item.getAttribute('data-after-flex-space')) {
if (!itemFlexSpace || item.getAttribute('data-after-flex-space')) {
this.menuItemsEl.append(item);
} else {
itemFlexSpace.insertAdjacentElement('beforebegin', item);
Expand Down

0 comments on commit d7d8a29

Please sign in to comment.