noph-ui 0.16.8 → 0.16.10
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.
|
@@ -67,14 +67,9 @@
|
|
|
67
67
|
return options.find((option) => option.value === value)?.label || ''
|
|
68
68
|
})
|
|
69
69
|
$effect(() => {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
selectElement?.checkValidity()
|
|
74
|
-
) {
|
|
75
|
-
errorRaw = error
|
|
76
|
-
errorTextRaw = errorText
|
|
77
|
-
}
|
|
70
|
+
errorRaw = error
|
|
71
|
+
errorTextRaw = errorText
|
|
72
|
+
selectElement?.setCustomValidity(errorText)
|
|
78
73
|
})
|
|
79
74
|
$effect(() => {
|
|
80
75
|
if (selectElement) {
|
|
@@ -207,6 +202,7 @@
|
|
|
207
202
|
<select
|
|
208
203
|
tabindex="-1"
|
|
209
204
|
aria-label={attributes['aria-label'] || label}
|
|
205
|
+
aria-invalid={errorRaw}
|
|
210
206
|
{disabled}
|
|
211
207
|
{required}
|
|
212
208
|
{name}
|