Skip to content

Commit

Permalink
(hds-2069) Fix input labeling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoHelle committed Oct 22, 2024
1 parent d0d4bfe commit b04be9a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ const createFilterInputProps = (
const hasVisibleGroupLabels = getVisibleGroupLabels(groups).length > 0;
const isSearchInput = inputType === 'search';
const value = isSearchInput ? search : filter;
const label = getTextKey(getTextKeyWithType(`${typeIndicator}ClearButtonAriaLabel`, isSearchInput), metaData);
const clearButtonAriaLabel = getTextKey(getTextKeyWithType(`${typeIndicator}Label`, isSearchInput), metaData);
const label = getTextKey(getTextKeyWithType(`${typeIndicator}Label`, isSearchInput), metaData);
const clearButtonAriaLabel = getTextKey(
getTextKeyWithType(`${typeIndicator}ClearButtonAriaLabel`, isSearchInput),
metaData,
);
const placeholder = getTextKey(getTextKeyWithType(`${typeIndicator}Placeholder`, isSearchInput), metaData);

return {
Expand Down

0 comments on commit b04be9a

Please sign in to comment.