inviton-powerduck 0.0.189 → 0.0.190
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.
|
@@ -1044,7 +1044,7 @@ class DropdownListComponent extends TsxComponent<DropdownListArgs> implements Dr
|
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
1046
|
const modalContent = $(this.$el).closest('.modal-content');
|
|
1047
|
-
if (modalContent.length > 0) {
|
|
1047
|
+
if (modalContent.length > 0 && !isInline) {
|
|
1048
1048
|
s2Args.dropdownParent = modalContent;
|
|
1049
1049
|
}
|
|
1050
1050
|
|
|
@@ -1303,14 +1303,16 @@ class DropdownListComponent extends TsxComponent<DropdownListArgs> implements Dr
|
|
|
1303
1303
|
instance.dropdown._attachPositioningHandler = () => { };
|
|
1304
1304
|
instance.results.ensureHighlightVisible = () => { };
|
|
1305
1305
|
|
|
1306
|
-
const oldTrigger = instance.dropdown.$search
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1306
|
+
const oldTrigger = instance.dropdown.$search?.trigger;
|
|
1307
|
+
if (oldTrigger != null) {
|
|
1308
|
+
instance.dropdown.$search.trigger = (ev: string) => {
|
|
1309
|
+
if (ev == 'focus') {
|
|
1310
|
+
return;
|
|
1311
|
+
}
|
|
1311
1312
|
|
|
1312
|
-
|
|
1313
|
-
|
|
1313
|
+
oldTrigger.call(instance.dropdown.$search, ev);
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1314
1316
|
|
|
1315
1317
|
setTimeout(() => {
|
|
1316
1318
|
instance.open();
|