Skip to content

Commit be46936

Browse files
committed
better naming
1 parent 47f2e74 commit be46936

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/uui-button/lib/uui-button.element.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ export class UUIButtonElement extends FormControlMixin(
422422
* @default undefined
423423
*/
424424
@property({ type: String })
425-
public popovertarget?: string;
425+
public popoverContainerElement?: string;
426426

427427
/**
428428
* Set an anchor tag target, only used when using href.
@@ -525,20 +525,20 @@ export class UUIButtonElement extends FormControlMixin(
525525
};
526526

527527
#updatePopover = () => {
528-
if (!this.popovertarget) return;
528+
if (!this.popoverContainerElement) return;
529529

530-
const popoverTarget = this.#findAncestorWithAttribute(
530+
const popoverContainerElement = this.#findAncestorWithAttribute(
531531
this,
532532
'id',
533-
this.popovertarget
533+
this.popoverContainerElement
534534
);
535-
if (!popoverTarget) return;
535+
if (!popoverContainerElement) return;
536536

537537
this.#popoverIsOpen
538538
? // @ts-ignore - This is part of the new popover API, but typescript doesn't recognize it yet.
539-
popoverTarget.hidePopover()
539+
popoverContainerElement.hidePopover()
540540
: // @ts-ignore - This is part of the new popover API, but typescript doesn't recognize it yet.
541-
popoverTarget.showPopover();
541+
popoverContainerElement.showPopover();
542542
};
543543

544544
#findAncestorWithAttribute(

0 commit comments

Comments
 (0)