Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ Dropdown.propTypes = {
*/
disabled: PropTypes.bool,

/**
* If false, the menu of the dropdown will not close once a value is selected.
*/
closeMenuOnSelect: PropTypes.bool,

/**
* height of each option. Can be increased when label lengths would wrap around
*/
Expand Down Expand Up @@ -214,6 +219,7 @@ Dropdown.defaultProps = {
searchable: true,
optionHeight: 35,
maxHeight: 200,
closeMenuOnSelect: true,
persisted_props: ['value'],
persistence_type: 'local',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const RDProps = [
'maxHeight',
'style',
'className',
'closeMenuOnSelect',
];

const Dropdown = props => {
Expand Down