jquense / react-widgets

Polished, feature rich, accessible form inputs built with React
http://jquense.github.io/react-widgets/
MIT License
2.34k stars 394 forks source link

CalenderPicker randomly closes on ios before actually selecting date #1128

Open wngray95 opened 2 years ago

wngray95 commented 2 years ago

See attached screen recording. Attempting to use the DatePicker component in a React/Ionic cross platform application. Everytime I use the calendar picker, the popover closes itself after a few (2-3) button clicks, before I've actually had a chance to select the date. Reproducible in both xCode emulator and on the google chrome browser dev tools when using ios mode.

Uploading Screen Recording 2022-05-27 at 1.16.01 PM.mov…

wngray95 commented 2 years ago

<DatePicker style={{paddingTop: '4px', paddingBottom: '12px', width: "100%"}} disabled={disabled} placeholder='mm/dd/yyyy' valueFormat={{month: 'numeric', day: 'numeric', year: 'numeric'}} value={date ? new Date(date) : undefined} onChange={(date) => this.setValue(date)} max={max} min={min} />