jsl-ui 10.4.1 → 10.4.2
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.
|
@@ -152,7 +152,7 @@ export class SelectComponent {
|
|
|
152
152
|
isExpanded() { return this.expanded; }
|
|
153
153
|
getListId() { return this.listId; }
|
|
154
154
|
show(searchTxt) {
|
|
155
|
-
var _a, _b, _c, _d, _e;
|
|
155
|
+
var _a, _b, _c, _d, _e, _f;
|
|
156
156
|
if (!this.options.enabled || this.disposed || !this.dom || this.expanded) {
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
@@ -167,7 +167,7 @@ export class SelectComponent {
|
|
|
167
167
|
this.options.onAppend(this.dropdownArea);
|
|
168
168
|
}
|
|
169
169
|
else {
|
|
170
|
-
((_b = this.dom.closest(".jsl-dialog")) !== null && _b !== void 0 ? _b : document.body).appendChild(this.dropdownArea);
|
|
170
|
+
((_c = (_b = this.dom.closest(".jsl-dialog")) !== null && _b !== void 0 ? _b : this.dom.closest("dialog[open]")) !== null && _c !== void 0 ? _c : document.body).appendChild(this.dropdownArea);
|
|
171
171
|
}
|
|
172
172
|
this.dropdownLimit = this.dropdownArea.getBoundingClientRect().height;
|
|
173
173
|
this.dropdownComponent = new SelectDDAreaComponent(this.options, this, {
|
|
@@ -193,13 +193,13 @@ export class SelectComponent {
|
|
|
193
193
|
if (this.options.onSearch && !searchTxt) {
|
|
194
194
|
this.requestSearch("", true);
|
|
195
195
|
}
|
|
196
|
-
(
|
|
196
|
+
(_e = (_d = this.options).onOpen) === null || _e === void 0 ? void 0 : _e.call(_d);
|
|
197
197
|
document.addEventListener("mousedown", this.onOutsidePress, true);
|
|
198
198
|
document.addEventListener("touchstart", this.onOutsidePress, true);
|
|
199
199
|
document.addEventListener("focusin", this.onDocumentFocus);
|
|
200
200
|
window.addEventListener("resize", this.positionDropdown);
|
|
201
201
|
window.addEventListener("scroll", this.onWindowScroll, true);
|
|
202
|
-
(
|
|
202
|
+
(_f = this.renderer) === null || _f === void 0 ? void 0 : _f.refresh();
|
|
203
203
|
this.updateTriggerAria();
|
|
204
204
|
this.focusFrame = requestAnimationFrame(() => {
|
|
205
205
|
var _a;
|