Skip to content

Commit

Permalink
Don't pass closeOnSelect to Pane in OptionsList (#616)
Browse files Browse the repository at this point in the history
We need to pull out `closeOnSelect` so that we don't pass it in `props` to the `Pane` in `OptionsList`. Follow on to: #588

| Before | After |
| --- | --- |
| ![image](https://user-images.githubusercontent.com/2907397/63835739-ef2da200-c92c-11e9-97ce-5d0e8b865c54.png) | ![image](https://user-images.githubusercontent.com/2907397/63835743-f5238300-c92c-11e9-87d5-1a232c02c040.png) |
  • Loading branch information
colinking committed Aug 28, 2019
1 parent 4d7e536 commit 6883715
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/select-menu/src/OptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export default class OptionsList extends PureComponent {
optionsFilter,
isMultiSelect,
defaultSearchValue,
closeOnSelect,
...props
} = this.props
const options = this.search(originalOptions)
Expand Down

0 comments on commit 6883715

Please sign in to comment.