mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 20:19:13 +00:00
remove error
This commit is contained in:
@@ -242,12 +242,8 @@ export default class SlPopup extends LitElement {
|
||||
|
||||
/** Recalculate and repositions the popup. */
|
||||
reposition() {
|
||||
if (!this.anchor) {
|
||||
throw new Error('Invalid anchor element: no child with slot="anchor" was found.');
|
||||
}
|
||||
|
||||
// Nothing to do if the popup is inactive
|
||||
if (!this.active) {
|
||||
// Nothing to do if the popup is inactive or the anchor doesn't exist
|
||||
if (!this.active || !this.anchor) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user