Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
adavijit committed May 24, 2024
1 parent 1ea2582 commit cee12f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/terra-form-select/src/search/Frame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ class Frame extends React.Component {
this.setState({ isFocused: false, focusedByTouch: false });

if (this.state.hasSearchChanged) {
this.setState({
searchValue: this.state.searchValue.trim(),
});
this.setState((prevState) => ({
searchValue: prevState.searchValue.trim(),
}));
}

this.closeDropdown();
Expand Down

0 comments on commit cee12f0

Please sign in to comment.