srcdev-nuxt-forms 2.1.25 → 2.1.26

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.
@@ -19,7 +19,7 @@
19
19
  v-model="modelValue"
20
20
  ref="inputField"
21
21
  :aria-invalid="fieldHasError"
22
- :ariaDescribedby
22
+ :aria-describedby
23
23
  :pattern="inputPattern"
24
24
  :inputmode
25
25
  @focusin="updateFocus(true)"
@@ -130,8 +130,8 @@ const formTheme = computed(() => {
130
130
 
131
131
  const errorId = `${id}-error-message`;
132
132
  const ariaDescribedby = computed(() => {
133
- const ariaDescribedby = hasDescriptionSlot ? `${id}-description` : null;
134
- return fieldHasError ? errorId : ariaDescribedby;
133
+ const ariaDescribedbyId = hasDescriptionSlot.value ? `${id}-description` : null;
134
+ return fieldHasError ? errorId : ariaDescribedbyId;
135
135
  });
136
136
 
137
137
  const modelValue = defineModel();
@@ -105,8 +105,8 @@ const formTheme = computed(() => {
105
105
 
106
106
  const errorId = `${id}-error-message`;
107
107
  const ariaDescribedby = computed(() => {
108
- const ariaDescribedby = hasDescriptionSlot ? `${id}-description` : null;
109
- return fieldHasError ? errorId : ariaDescribedby;
108
+ const ariaDescribedbyId = hasDescriptionSlot.value ? `${id}-description` : null;
109
+ return fieldHasError ? errorId : ariaDescribedbyId;
110
110
  });
111
111
 
112
112
  const modelValue = defineModel();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-forms",
3
3
  "type": "module",
4
- "version": "2.1.25",
4
+ "version": "2.1.26",
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",