Skip to content

Commit

Permalink
fix: ActionBar overlay button does not work when has one child(#330)
Browse files Browse the repository at this point in the history
Co-authored-by: piyushjindal <piyushjindal@adobe.com>
  • Loading branch information
jindaliiita and piyushjindal committed Feb 8, 2024
1 parent f20a37c commit 855d999
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 855d999

Please sign in to comment.