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 = {
145145 */
146146 disabled : PropTypes . bool ,
147147
148+ /**
149+ * If false, the menu of the dropdown will not close once a value is selected.
150+ */
151+ closeMenuOnSelect : PropTypes . bool ,
152+
148153 /**
149154 * height of each option. Can be increased when label lengths would wrap around
150155 */
@@ -214,6 +219,7 @@ Dropdown.defaultProps = {
214219 searchable : true ,
215220 optionHeight : 35 ,
216221 maxHeight : 200 ,
222+ closeMenuOnSelect : true ,
217223 persisted_props : [ 'value' ] ,
218224 persistence_type : 'local' ,
219225} ;
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ const RDProps = [
3333 'maxHeight' ,
3434 'style' ,
3535 'className' ,
36+ 'closeMenuOnSelect' ,
3637] ;
3738
3839const Dropdown = props => {
You can’t perform that action at this time.
0 commit comments