fix typo in fuzzysearchinput

merge-requests/3361/merge^2
Siddharth Singh 2025-04-12 05:07:55 +05:30
rodzic 25126660df
commit 9e115a83c1
Nie znaleziono w bazie danych klucza dla tego podpisu
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -236,6 +236,8 @@ function FuzzySearchInput<T extends Record<string, any> | string>({
};
}, []);
const label = typeof ariaLabel === 'string' ? ariaLabel : intl.formatMessage(ariaLabel);
return (
<div ref={containerRef} className={`relative ${className}`}>
<Input
@ -248,7 +250,7 @@ function FuzzySearchInput<T extends Record<string, any> | string>({
onBlur={handleBlur}
placeholder={currentPlaceholder}
autoComplete='off'
aria-label={ariaLabel}
aria-label={label}
aria-autocomplete='list'
aria-controls={showSuggestions && suggestions.length > 0 ? listboxId : undefined}
aria-expanded={showSuggestions && suggestions.length > 0}