react-flatpickr icon indicating copy to clipboard operation
react-flatpickr copied to clipboard

Can't change hours and minutes normally when use 'disable' and 'enableTime' attributes.

Open dcheremisin opened this issue 5 years ago • 1 comments

When I set 'disable' and 'enableTime' in 'options' attribute and then trying to change hours and minutes by fast clicking on buttons it doesn't change it. When I hold buttons to change these values it works, but that looks not userfriendly. How to fix it?

<Flatpickr
  name={this.props.name}
  value={this.props.value}
  onChange={this.handleChange}
  placeholder={this.props.placeholder ? this.props.placeholder : ''}
  options={{
    enableTime: this.props.enableTime,
    static: true,
    position: 'below',
    disable: this.props.disable,
  }}
/>

dcheremisin avatar Dec 30 '19 14:12 dcheremisin

Same here! Works fine with arrows on keyboard and input from keyboard, but doesn't work with UI arrows. I literally got incorrect date in handler

iron66 avatar Feb 06 '20 12:02 iron66