@nectary/components 5.31.4 → 5.32.0
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/bundle.js +5 -2
- package/package.json +1 -1
- package/select-menu/index.js +5 -2
package/bundle.js
CHANGED
|
@@ -13234,8 +13234,11 @@ class SelectMenu extends NectaryElement {
|
|
|
13234
13234
|
const $options = this.#getOptionElements();
|
|
13235
13235
|
let someFound = false;
|
|
13236
13236
|
for (const $opt of $options) {
|
|
13237
|
-
const
|
|
13238
|
-
|
|
13237
|
+
const isAction = getBooleanAttribute($opt, "action");
|
|
13238
|
+
const isHidden = searchValue.length > 0 && !isAction && !$opt.matchesSearch(searchValue);
|
|
13239
|
+
if (!isAction) {
|
|
13240
|
+
someFound ||= !isHidden;
|
|
13241
|
+
}
|
|
13239
13242
|
setClass($opt, "hidden", isHidden);
|
|
13240
13243
|
}
|
|
13241
13244
|
setClass(this.#$notFound, "active", searchValue.length > 0 && !someFound);
|
package/package.json
CHANGED
package/select-menu/index.js
CHANGED
|
@@ -271,8 +271,11 @@ class SelectMenu extends NectaryElement {
|
|
|
271
271
|
const $options = this.#getOptionElements();
|
|
272
272
|
let someFound = false;
|
|
273
273
|
for (const $opt of $options) {
|
|
274
|
-
const
|
|
275
|
-
|
|
274
|
+
const isAction = getBooleanAttribute($opt, "action");
|
|
275
|
+
const isHidden = searchValue.length > 0 && !isAction && !$opt.matchesSearch(searchValue);
|
|
276
|
+
if (!isAction) {
|
|
277
|
+
someFound ||= !isHidden;
|
|
278
|
+
}
|
|
276
279
|
setClass($opt, "hidden", isHidden);
|
|
277
280
|
}
|
|
278
281
|
setClass(this.#$notFound, "active", searchValue.length > 0 && !someFound);
|