inviton-powerduck 0.0.149 → 0.0.150
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.
|
@@ -346,8 +346,20 @@ class DropdownListComponent extends TsxComponent<DropdownListArgs> implements Dr
|
|
|
346
346
|
);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
+
open() {
|
|
350
|
+
if (this.useMobile()) {
|
|
351
|
+
(this.$refs.mobileModeRoot as HTMLElement).click();
|
|
352
|
+
} else {
|
|
353
|
+
DropdownSelect2Helper.getSelect2Instance(this.getSelect2RootElement()).open();
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
349
357
|
close() {
|
|
350
|
-
(
|
|
358
|
+
if (this.useMobile()) {
|
|
359
|
+
(FilterableSelect as any).currentInstance?.hide();
|
|
360
|
+
} else {
|
|
361
|
+
DropdownSelect2Helper.getSelect2Instance(this.getSelect2RootElement()).close();
|
|
362
|
+
}
|
|
351
363
|
}
|
|
352
364
|
|
|
353
365
|
render(h) {
|
|
@@ -414,7 +426,7 @@ class DropdownListComponent extends TsxComponent<DropdownListArgs> implements Dr
|
|
|
414
426
|
}
|
|
415
427
|
|
|
416
428
|
return (
|
|
417
|
-
<span onClick={e => this.showMobilePicker(h)} class={`select2 select2-container select2-container--default s2-pseudo maxwidth-input ${this.getRootBaseCssClass()}`} dir="ltr">
|
|
429
|
+
<span ref="mobileModeRoot" onClick={e => this.showMobilePicker(h)} class={`select2 select2-container select2-container--default s2-pseudo maxwidth-input ${this.getRootBaseCssClass()}`} dir="ltr">
|
|
418
430
|
<span class="selection">
|
|
419
431
|
<span class="select2-selection select2-selection--single" role="combobox" aria-haspopup="true">
|
|
420
432
|
<span class="select2-selection__rendered mbl-ddl-text" title={selectedText} style="font-size: inherit;">
|