kopia lustrzana https://github.com/shoelace-style/shoelace
fixes #1548
rodzic
c858bc3723
commit
4d3297937a
|
|
@ -16,6 +16,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
|
|||
|
||||
- Fixed a bug in the autoloader causing it to register non-Shoelace elements [#1563]
|
||||
- Fixed a bug in `<sl-switch>` that resulted in improper spacing between the label and the required asterisk [#1540]
|
||||
- Removed error when a missing popup anchor is provided [#1548]
|
||||
- Updated `@ctrl/tinycolor` to 4.0.1 [#1542]
|
||||
- Updated Bootstrap Icons to 1.11.0
|
||||
|
||||
|
|
|
|||
|
|
@ -246,13 +246,10 @@ export default class SlPopup extends ShoelaceElement {
|
|||
this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0] as HTMLElement;
|
||||
}
|
||||
|
||||
if (!this.anchorEl) {
|
||||
throw new Error(
|
||||
'Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.'
|
||||
);
|
||||
// If the anchor is valid, start it up
|
||||
if (this.anchorEl) {
|
||||
this.start();
|
||||
}
|
||||
|
||||
this.start();
|
||||
}
|
||||
|
||||
private start() {
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue