native-document 1.0.179 → 1.0.180

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-document",
3
- "version": "1.0.179",
3
+ "version": "1.0.180",
4
4
  "description": "A reactive JavaScript framework that preserves native DOM simplicity without sacrificing modern features",
5
5
  "author": "AfroCodeur <https://github.com/afrocodeur>",
6
6
  "license": "MIT",
@@ -123,10 +123,10 @@ const buildSelectedLabel = ($desc) => {
123
123
  return $desc.placeholder || 'Select...';
124
124
  }
125
125
 
126
- const options = Array.isArray($desc.options) ? $desc.options : [];
126
+ const options = $desc.options;
127
127
 
128
128
  if(!$desc.multiple || !Array.isArray(val)) {
129
- const opt = options.find(o => (o.value ?? o) === val);
129
+ const opt = options.find(o => (o.value ?? o) == val);
130
130
  return opt?.label ?? opt ?? val;
131
131
  }
132
132