File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ export class UUIButtonElement extends FormControlMixin(
422
422
* @default undefined
423
423
*/
424
424
@property ( { type : String } )
425
- public popovertarget ?: string ;
425
+ public popoverContainerElement ?: string ;
426
426
427
427
/**
428
428
* Set an anchor tag target, only used when using href.
@@ -525,20 +525,20 @@ export class UUIButtonElement extends FormControlMixin(
525
525
} ;
526
526
527
527
#updatePopover = ( ) => {
528
- if ( ! this . popovertarget ) return ;
528
+ if ( ! this . popoverContainerElement ) return ;
529
529
530
- const popoverTarget = this . #findAncestorWithAttribute(
530
+ const popoverContainerElement = this . #findAncestorWithAttribute(
531
531
this ,
532
532
'id' ,
533
- this . popovertarget
533
+ this . popoverContainerElement
534
534
) ;
535
- if ( ! popoverTarget ) return ;
535
+ if ( ! popoverContainerElement ) return ;
536
536
537
537
this . #popoverIsOpen
538
538
? // @ts -ignore - This is part of the new popover API, but typescript doesn't recognize it yet.
539
- popoverTarget . hidePopover ( )
539
+ popoverContainerElement . hidePopover ( )
540
540
: // @ts -ignore - This is part of the new popover API, but typescript doesn't recognize it yet.
541
- popoverTarget . showPopover ( ) ;
541
+ popoverContainerElement . showPopover ( ) ;
542
542
} ;
543
543
544
544
#findAncestorWithAttribute(
You can’t perform that action at this time.
0 commit comments