kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
fix typo in fuzzysearchinput
rodzic
25126660df
commit
9e115a83c1
|
@ -236,6 +236,8 @@ function FuzzySearchInput<T extends Record<string, any> | string>({
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
const label = typeof ariaLabel === 'string' ? ariaLabel : intl.formatMessage(ariaLabel);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={containerRef} className={`relative ${className}`}>
|
<div ref={containerRef} className={`relative ${className}`}>
|
||||||
<Input
|
<Input
|
||||||
|
@ -248,7 +250,7 @@ function FuzzySearchInput<T extends Record<string, any> | string>({
|
||||||
onBlur={handleBlur}
|
onBlur={handleBlur}
|
||||||
placeholder={currentPlaceholder}
|
placeholder={currentPlaceholder}
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
aria-label={ariaLabel}
|
aria-label={label}
|
||||||
aria-autocomplete='list'
|
aria-autocomplete='list'
|
||||||
aria-controls={showSuggestions && suggestions.length > 0 ? listboxId : undefined}
|
aria-controls={showSuggestions && suggestions.length > 0 ? listboxId : undefined}
|
||||||
aria-expanded={showSuggestions && suggestions.length > 0}
|
aria-expanded={showSuggestions && suggestions.length > 0}
|
||||||
|
|
Ładowanie…
Reference in New Issue