time-picker icon indicating copy to clipboard operation
time-picker copied to clipboard

Issue in Firefox for programatically opening panel

Open zchauhan opened this issue 8 years ago • 1 comments

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 avatar Nov 09 '17 14:11 zchauhan

@zchauhan . Did you find any solution for this? Removing onFocus worked for me.

swapnil2993 avatar Oct 10 '18 07:10 swapnil2993