@namelivia/vue-components 1.6.0 → 1.6.2

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.esm.js CHANGED
@@ -264,8 +264,9 @@ var script$k = defineComponent({
264
264
  options: {
265
265
  immediate: true,
266
266
  handler: function (newOptions) {
267
- if (newOptions.length === 1) {
268
- this.selected = newOptions[0].value;
267
+ const enabledOptions = newOptions.filter((option) => !option.disabled);
268
+ if (enabledOptions.length === 1) {
269
+ this.selected = enabledOptions[0].value;
269
270
  }
270
271
  },
271
272
  },