diff --git a/src/components/fuzzy-search-input.tsx b/src/components/fuzzy-search-input.tsx index 41ed04b60..7ad9b797a 100644 --- a/src/components/fuzzy-search-input.tsx +++ b/src/components/fuzzy-search-input.tsx @@ -236,6 +236,8 @@ function FuzzySearchInput | string>({ }; }, []); + const label = typeof ariaLabel === 'string' ? ariaLabel : intl.formatMessage(ariaLabel); + return (
| 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}