timekit-io/booking-js

Enable click on submit button once we display a "success"

Opened this issue · 2 comments

It is not possible to click on the submit button once we have successfully added a new booking.

image

It would be nice to be able to click on it, instead of closing or pressing ESC.

@Vadorequest Great suggestion! Would you prefer simply a setting like closeFormOnSuccessButtonClick = true/false or a callback you can hook into (for custom redirects etc)?

I think the setting is a good idea. Default behavior should close the popup.
A custom function would be useful for many use cases as well :)

So, we would have a closeFormOnSuccessButtonClick: 'true|false|Function' possible values.