Add aria-invalid to flight-number input when error is present (a11y)

This commit is contained in:
2026-04-20 23:07:12 +03:00
parent 9948bcd3dc
commit fd101819af
@@ -336,6 +336,7 @@ export const OnlineBoardFilter: FC<OnlineBoardFilterProps> = ({
placeholder={t("SHARED.FLIGHT_NUMBER_PLACEHOLDER")}
value={flightNumber}
maxLength={5}
aria-invalid={Boolean(flightNumberError)}
onChange={(e) => {
setFlightNumber(e.target.value);
if (flightNumberError) setFlightNumberError(null);