Skip to content

Commit

Permalink
Coral ActionBar overlay open correction in case of one element
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushjindal committed Feb 1, 2024
1 parent f20a37c commit 81b1872
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const BaseActionBarContainer = (superClass) => class extends superClass {
this._itemsInPopover.forEach((item) => {
item.style.visibility = '';
// Store the button and popover on the item
item._button = item.querySelector('button[is="coral-button"]') || item.querySelector('a[is="coral-anchorbutton"]');
item._button = item.querySelector(':scope > button[is="coral-button"]') || item.querySelector(':scope > a[is="coral-anchorbutton"]');
item._popover = item.querySelector('coral-popover');
if (item._popover) {
item._popoverId = item._popover.id;
Expand Down

0 comments on commit 81b1872

Please sign in to comment.