Allow to use item.onClick in PickerMenu
parent
d436eaed80
commit
8dd3bb5b93
|
@ -70,7 +70,14 @@ export default class PickerMenu extends Picker
|
|||
}
|
||||
const sel = this.props.items[this.state.active];
|
||||
const f = this.props.onSelectItem;
|
||||
f && f(sel);
|
||||
if (f)
|
||||
{
|
||||
f(sel);
|
||||
}
|
||||
else if (sel.onClick)
|
||||
{
|
||||
sel.onClick();
|
||||
}
|
||||
}
|
||||
|
||||
onMouseOver = (ev) =>
|
||||
|
|
Loading…
Reference in New Issue