Skip to content

Commit

Permalink
Merge branch 'main' into change-TreeView-appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
anistouri authored Nov 16, 2023
2 parents 0af5d21 + 90642b4 commit 2c9c5b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/ElementSearchDialog/element-search-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ const ElementSearchDialog = (props) => {
}
}, [searchTermDisabled, searchTermDisableReason]);

// to reset the value between the dialog closing and opening
useEffect(() => {
setValue((old) => (!open ? null : old));
}, [open]);

const handleSearchTermChange = (term) => {
if (term) {
setLoading(true);
Expand Down

0 comments on commit 2c9c5b1

Please sign in to comment.