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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## Added
- [#3294](https://github.com/plotly/dash/pull/3294) Added the ability to pass `allow_optional` to Input and State to allow callbacks to work even if these components are not in the dash layout.
- [#3077](https://github.com/plotly/dash/pull/3077) Add new parameter `assets_path_ignore` to `dash.Dash()`. Closes [#3076](https://github.com/plotly/dash/issues/3076)
- [#3202](https://github.com/plotly/dash/pull/3202) expose the closeMenuOnSelect option in dropdown component
- [#3202](https://github.com/plotly/dash/pull/3202) expose the closeOnSelect option in dropdown component

## Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Dropdown.propTypes = {
/**
* If false, the menu of the dropdown will not close once a value is selected.
*/
closeMenuOnSelect: PropTypes.bool,
closeOnSelect: PropTypes.bool,

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

const Dropdown = props => {
Expand Down