Fixed pressing space or clicking dd input closes dd
This commit is contained in:
parent
90ee0c7ad9
commit
f99fa3ac1a
1 changed files with 6 additions and 4 deletions
|
@ -152,10 +152,12 @@ export default class Dropdown extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onInputClick(ev) {
|
_onInputClick(ev) {
|
||||||
this.setState({
|
if (!this.state.expanded) {
|
||||||
expanded: !this.state.expanded,
|
this.setState({
|
||||||
});
|
expanded: !this.state.expanded,
|
||||||
ev.preventDefault();
|
});
|
||||||
|
ev.preventDefault();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_onMenuOptionClick(dropdownKey) {
|
_onMenuOptionClick(dropdownKey) {
|
||||||
|
|
Loading…
Reference in a new issue