Skip to content
Open
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
5 changes: 5 additions & 0 deletions src/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,11 @@ export default class Select extends React.Component {
label: this.getLabelFromOption(firstOption),
},
];

/* Close dropdown so the unfiltering caused by fireChange()
does not cause the dropdown to animate and expand just
before closing again. */
this.setOpenState(false);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this works? There is already has this.setOpenState(false); at line 397.

this.fireChange(value);
}
}
Expand Down