Skip to content

Commit

Permalink
add popover default value
Browse files Browse the repository at this point in the history
  • Loading branch information
JesmoDev committed Nov 22, 2023
1 parent 1874eb3 commit 06f7624
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export class UUIPopoverContainerElement extends LitElement {
//TODO: Remove this polyfill when firefox supports the new popover API
!HTMLElement.prototype.hasOwnProperty('popover') && polyfill.bind(this)();

if (!this.hasAttribute('popover')) {
this.setAttribute('popover', '');
}

super.connectedCallback();

this.addEventListener('focusout', this.#onFocusOut);
Expand Down

0 comments on commit 06f7624

Please sign in to comment.