@m3e/select 1.1.6 → 1.1.7

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.
@@ -213,7 +213,7 @@
213
213
  "type": {
214
214
  "text": "string | readonly string[] | null"
215
215
  },
216
- "description": "The selected value(s).",
216
+ "description": "The selected (enabled) value(s).",
217
217
  "readonly": true
218
218
  },
219
219
  {
package/dist/index.js CHANGED
@@ -896,9 +896,9 @@ let M3eSelectElement = M3eSelectElement_1 = class M3eSelectElement extends Focus
896
896
  get options() {
897
897
  return this._listKeyManager?.items ?? [];
898
898
  }
899
- /** The selected value(s). */
899
+ /** The selected (enabled) value(s). */
900
900
  get value() {
901
- const values = this.selected.map(x => x.value);
901
+ const values = this.selected.filter(x => !x.disabled).map(x => x.value);
902
902
  switch (values.length) {
903
903
  case 0:
904
904
  return null;