Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
JesmoDev committed Nov 2, 2023
1 parent c9a3e19 commit 961b379
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,11 @@ export class UUIPopoverContainerElement extends LitElement {
#onBeforeToggle = (event: any) => {
this._open = event.newState === 'open';

// @ts-ignore
if (!this.polyfill_hasBeenMovedToBody) {
//TODO: Remove the if statement when firefox supports the new popover API
this.#targetElement = findAncestorByAttributeValue(
this,
'popovertarget',
this.id
);
}
this.#targetElement = findAncestorByAttributeValue(
this,
'popovertarget',
this.id
);

// Dispatch a custom event that can be listened to by the popover target.
// Mostly used for UUIButton.
Expand Down

0 comments on commit 961b379

Please sign in to comment.