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.
|
@@ -130,8 +130,8 @@ const formTheme = computed(() => {
|
|
|
130
130
|
|
|
131
131
|
const errorId = `${id}-error-message`;
|
|
132
132
|
const ariaDescribedby = computed(() => {
|
|
133
|
-
const
|
|
134
|
-
return fieldHasError ? errorId :
|
|
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
|
|
109
|
-
return fieldHasError ? errorId :
|
|
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