We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents deb4b33 + d086baf commit b97bc23Copy full SHA for b97bc23
src/SelectNext.tsx
@@ -174,9 +174,11 @@ function NonMemoizedNonForwardedSelect<T extends SelectProps.Option[]>(
174
className={cx(fr.cx("fr-select"), nativeSelectProps.className)}
175
id={selectId}
176
aria-describedby={
177
- nativeSelectProps["aria-describedby"] !== undefined
+ state !== "default" && nativeSelectProps["aria-describedby"] !== undefined
178
? `${stateDescriptionId} ${nativeSelectProps["aria-describedby"]}`
179
- : stateDescriptionId
+ : state !== "default"
180
+ ? stateDescriptionId
181
+ : undefined
182
}
183
disabled={disabled}
184
>
0 commit comments