We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5bfa8e commit 04309d7Copy full SHA for 04309d7
src/index.js
@@ -88,7 +88,11 @@ class DropdownTreeSelect extends Component {
88
89
resetSearchState = () => {
90
// clear the search criteria and avoid react controlled/uncontrolled warning
91
- this.searchInput.value = ''
+ // !this.props.inlineSearchInput is gated as inline search is not rendered until dropdown is shown
92
+ if (!this.props.inlineSearchInput) {
93
+ this.searchInput.value = ''
94
+ }
95
+
96
return {
97
tree: this.treeManager.restoreNodes(), // restore the tree to its pre-search state
98
searchModeOn: false,
0 commit comments