time-picker
time-picker copied to clipboard
Issue in Firefox for programatically opening panel
I have a case where, I have to open time picker panel when user came to on that field by tab navigation. Below code works fine when user go by pressing tab. However, If we focus on field using mouse, this code result in error TypeError: _this2.refs.input is undefined and time picker panel blinks and close.
setOpen = ({ open }) => {
this.setState({ open });
}
onFocus = () => {
this.setOpen({open: true});
}
If I wrap this.setOpen({open: true}); inside setTimeout, it is working.
@zchauhan . Did you find any solution for this? Removing onFocus worked for me.