Skip to content

Commit

Permalink
fix(tabletoolbarsearch): prefix internally placed id (#16232)
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones committed Apr 25, 2024
1 parent 7d883c9 commit 7ea3b30
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 7ea3b30

Please sign in to comment.