File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
components/dash-core-components/src Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,11 @@ Dropdown.propTypes = {
145
145
*/
146
146
disabled : PropTypes . bool ,
147
147
148
+ /**
149
+ * If false, the menu of the dropdown will not close once a value is selected.
150
+ */
151
+ closeMenuOnSelect : PropTypes . bool ,
152
+
148
153
/**
149
154
* height of each option. Can be increased when label lengths would wrap around
150
155
*/
@@ -214,6 +219,7 @@ Dropdown.defaultProps = {
214
219
searchable : true ,
215
220
optionHeight : 35 ,
216
221
maxHeight : 200 ,
222
+ closeMenuOnSelect : true ,
217
223
persisted_props : [ 'value' ] ,
218
224
persistence_type : 'local' ,
219
225
} ;
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ const RDProps = [
33
33
'maxHeight' ,
34
34
'style' ,
35
35
'className' ,
36
+ 'closeMenuOnSelect' ,
36
37
] ;
37
38
38
39
const Dropdown = props => {
You can’t perform that action at this time.
0 commit comments