@elementor/editor-controls 3.33.0-172 → 3.33.0-174
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/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/autocomplete.tsx +7 -1
package/dist/index.js
CHANGED
|
@@ -3221,7 +3221,11 @@ function findMatchingOption(options, optionId = null) {
|
|
|
3221
3221
|
return options.find(({ id }) => formattedOption === id.toString());
|
|
3222
3222
|
}
|
|
3223
3223
|
function isCategorizedOptionPool(options) {
|
|
3224
|
-
|
|
3224
|
+
if (options.length <= 1) {
|
|
3225
|
+
return false;
|
|
3226
|
+
}
|
|
3227
|
+
const uniqueGroupLabels = new Set(options.map((option) => option.groupLabel));
|
|
3228
|
+
return uniqueGroupLabels.size > 1;
|
|
3225
3229
|
}
|
|
3226
3230
|
function factoryFilter(newValue, options, minInputLength) {
|
|
3227
3231
|
if (null === newValue) {
|