srcdev-nuxt-forms 4.1.0 → 4.2.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.
@@ -14,9 +14,9 @@
14
14
  <slot name="description"></slot>
15
15
  </div>
16
16
 
17
- <select class="input-select" :class="[inputVariant]" :name>
18
- <option v-if="placeholder" :value="null" disabled selected class="input-select-option placeholder">{{ placeholder }}</option>
19
- <option v-for="item in fieldData.data" :key="item.id" :value="item.value" class="input-select-option">
17
+ <select v-model="modelValue" class="input-select" :class="[inputVariant]" :name>
18
+ <option v-if="placeholder" value="" readonly :selected="!modelValue" class="input-select-option placeholder">{{ placeholder }}</option>
19
+ <option v-for="item in fieldData.data" :key="item.id" :value="item.value" :selected="item.value === modelValue" class="input-select-option">
20
20
  <Icon :name="item.icon" class="icon" />
21
21
  {{ item.label }}
22
22
  </option>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-forms",
3
3
  "type": "module",
4
- "version": "4.1.0",
4
+ "version": "4.2.0",
5
5
  "main": "nuxt.config.ts",
6
6
  "scripts": {
7
7
  "clean": "rm -rf .nuxt && rm -rf .output && rm -rf .playground/.nuxt && rm -rf .playground/.output",