pglejzer / timepicker-ui

timepicker-ui is an easy library with timepicker. Fully wrote with TypeScript. This library is based on Material Design from Google.
MIT License
62 stars 18 forks source link

Unnecessary delay on dismiss #37

Closed mertdy closed 1 year ago

mertdy commented 1 year ago

After the timepicker dismiss-action (clicking on Cancel/Okay buttons or on backdrop dismiss), there is a slight delay (~0.5s) for the picker to fade out. It can be seen on the demo page as well (https://pglejzer.github.io/timepicker-ui-docs/).

pglejzer commented 1 year ago

this delay is set on purpose to avoid unnecessary multiple clicks on buttons but I can add property that would change at discretion

mertdy commented 1 year ago

@pglejzer thanks for the answer. I guess it will be better because from the users' perspective, it feels like the webapp has some performance problems on timepicker.

pglejzer commented 1 year ago

I added new prop delayHandler. You can set this prop to 0 in the options and delay should disappear.