Skip to content

Commit

Permalink
Revert "fix(TableToolbarSearch): set focus on expanded search bar (ca…
Browse files Browse the repository at this point in the history
…rbon-design-system#5637)"

This reverts commit a5280c9.
  • Loading branch information
renmaddox committed Mar 20, 2020
1 parent 73589a1 commit 92a3b73
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,14 @@ const TableToolbarSearch = ({
const handleExpand = (event, value = !expanded) => {
if (!controlled && (!persistent || (!persistent && !persistant))) {
setExpandedState(value);
if (value) {
setFocusTarget(searchRef);
}
}
if (onExpand) {
onExpand(event, value);
}
};

const onClick = e => {
setFocusTarget(searchRef);
handleExpand(e, true);
};

Expand Down

0 comments on commit 92a3b73

Please sign in to comment.