Fix keepOnClick
parent
559365b852
commit
1c7709bdd4
|
@ -54,9 +54,13 @@ export default class PickerMenu extends Picker
|
|||
|
||||
onMouseDown = (ev) =>
|
||||
{
|
||||
if (ev)
|
||||
if (!this.props.keepOnClick)
|
||||
{
|
||||
this.props.keepOnClick ? ev.preventDefault() : this.blur();
|
||||
this.blur();
|
||||
}
|
||||
else if (ev)
|
||||
{
|
||||
ev.preventDefault();
|
||||
}
|
||||
const sel = this.props.items[this.state.active];
|
||||
const f = this.props.onSelectItem;
|
||||
|
|
Loading…
Reference in New Issue