kopia lustrzana https://github.com/shoelace-style/shoelace
Added check for PopperInstance before destroying it (#597)
rodzic
8e5c258896
commit
194c190519
|
@ -131,7 +131,9 @@ export default class SlDropdown extends LitElement {
|
|||
disconnectedCallback() {
|
||||
super.disconnectedCallback();
|
||||
this.hide();
|
||||
this.popover.destroy();
|
||||
if(this.popover) {
|
||||
this.popover.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
focusOnTrigger() {
|
||||
|
|
Ładowanie…
Reference in New Issue