@vollowx/seele 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/base/select.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vollowx/seele",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Standard Extensible Elements. A web components library that can be styled and extended freely, pre-providing components in Material Design 3.",
|
|
5
5
|
"author": "vollowx",
|
|
6
6
|
"license": "MIT",
|
package/src/base/select.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { LitElement, html } from 'lit';
|
|
2
|
+
import { LitElement, isServer, html } from 'lit';
|
|
3
3
|
import { property, query, state } from 'lit/decorators.js';
|
|
4
4
|
import { FormAssociated } from './mixins/form-associated.js';
|
|
5
5
|
import { InternalsAttached } from './mixins/internals-attached.js';
|
|
@@ -102,6 +102,8 @@ export class Select extends Base {
|
|
|
102
102
|
}
|
|
103
103
|
connectedCallback() {
|
|
104
104
|
super.connectedCallback();
|
|
105
|
+
if (isServer)
|
|
106
|
+
return;
|
|
105
107
|
this.addEventListener('click', this.#handleOptionClick);
|
|
106
108
|
this.addEventListener('focusout', this.#handleFocusOut);
|
|
107
109
|
}
|
|
@@ -213,6 +215,8 @@ export class Select extends Base {
|
|
|
213
215
|
}
|
|
214
216
|
}
|
|
215
217
|
#updateDisplayValue() {
|
|
218
|
+
if (isServer)
|
|
219
|
+
return;
|
|
216
220
|
// We need to wait for items to be available.
|
|
217
221
|
// Using a microtask or just checking if items exist.
|
|
218
222
|
// Since this is called in updated(), items might be available if children are slotted.
|