mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-19 05:21:22 +02:00
Fixed pressing space or clicking dd input closes dd
This commit is contained in:
parent
90ee0c7ad9
commit
f99fa3ac1a
@ -152,10 +152,12 @@ export default class Dropdown extends React.Component {
|
||||
}
|
||||
|
||||
_onInputClick(ev) {
|
||||
this.setState({
|
||||
expanded: !this.state.expanded,
|
||||
});
|
||||
ev.preventDefault();
|
||||
if (!this.state.expanded) {
|
||||
this.setState({
|
||||
expanded: !this.state.expanded,
|
||||
});
|
||||
ev.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
_onMenuOptionClick(dropdownKey) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user