nuxt-glorious 1.2.9-7 → 1.2.9-8

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.2.9-7"
4
+ "version": "1.2.9-8"
5
5
  }
@@ -23,6 +23,7 @@ watch(
23
23
 
24
24
  modelValue.value = null
25
25
  selectValue.value = null
26
+ const firstVal = selectValue.value
26
27
  </script>
27
28
 
28
29
  <template>
@@ -31,6 +32,7 @@ selectValue.value = null
31
32
  {{ props.title }}
32
33
  </span>
33
34
  <div class="grow flex relative">
35
+ {{ selectValue }}
34
36
  <select
35
37
  v-model="selectValue"
36
38
  aria-label="glorious select"
@@ -38,6 +40,16 @@ selectValue.value = null
38
40
  class="grow glorious-select"
39
41
  :class="[`color-${props.color}`, props.size]"
40
42
  >
43
+ <option
44
+ :selected="
45
+ selectValue === null ||
46
+ selectValue === '' ||
47
+ typeof selectValue === 'undefined'
48
+ "
49
+ :value="firstVal"
50
+ >
51
+ {{ props.placeholder }}
52
+ </option>
41
53
  <option
42
54
  v-for="(item, index) in props.options"
43
55
  :key="index"
@@ -46,16 +58,6 @@ selectValue.value = null
46
58
  {{ item[props.displayTextKey] }}
47
59
  </option>
48
60
  </select>
49
- <span
50
- v-if="
51
- selectValue === null ||
52
- selectValue === '' ||
53
- typeof selectValue === 'undefined'
54
- "
55
- class="absolute top-0 bottom-0 my-auto px-3 h-max text-gray-500"
56
- >
57
- {{ props.placeholder }}
58
- </span>
59
61
  </div>
60
62
  <GErrorText :error="props.error" />
61
63
  </div>
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.9-7",
2
+ "version": "1.2.9-8",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",