Skip to content

Commit

Permalink
fix(tabletoolbarsearch): prefix internally placed id
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones committed Apr 19, 2024
1 parent a353cf3 commit aa1caa4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,11 @@ const TableToolbarSearch = ({
disabled={disabled}
className={searchClasses}
value={value}
id={typeof id !== 'undefined' ? id : uniqueId.toString()}
id={
typeof id !== 'undefined'
? id
: `table-toolbar-search-${uniqueId.toString()}`
}
labelText={labelText || t('carbon.table.toolbar.search.label')}
placeholder={placeholder || t('carbon.table.toolbar.search.placeholder')}
onChange={onChange}
Expand Down

0 comments on commit aa1caa4

Please sign in to comment.