File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ A lightweight and fast control to render a select component that can display hie
4242 * [ onNodeToggle] ( #onnodetoggle )
4343 * [ data] ( #data )
4444 * [ placeholderText] ( #placeholdertext )
45+ * [ keepTreeOnSearch] ( #keeptreeonsearch )
4546* [ Styling and Customization] ( #styling-and-customization )
4647 * [ Using default styles] ( #default-styles )
4748 * [ Customizing with Bootstrap, Material Design styles] ( #customizing-styles )
@@ -217,7 +218,6 @@ The text to display as placeholder on the search box. Defaults to `Choose...`
217218
218219### keepTreeOnSearch
219220
220-
221221Type: ` bool `
222222
223223Displays search results as a tree instead of flatten results
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ const onNodeToggle = curNode => {
1414}
1515
1616ReactDOM . render (
17- < DropdownTreeSelect data = { data } onChange = { onChange } onAction = { onAction } onNodeToggle = { onNodeToggle } /> ,
17+ < DropdownTreeSelect
18+ data = { data }
19+ onChange = { onChange }
20+ onAction = { onAction }
21+ onNodeToggle = { onNodeToggle }
22+ keepTreeOnSearch
23+ /> ,
1824 document . getElementById ( 'app' )
1925)
You can’t perform that action at this time.
0 commit comments