luncheon/clocklet

Attach to form result in unwanted side effect of form submission

eimiveritas opened this issue · 1 comments

Hi,

Thanks for the great lib, i have been finding time picker library to use for my reactjs app, and this is by far the most suitable.

However, there seems to be a bug/unwanted side effect from picking a time in a form.

When you put the input in a form, and set in the option to attach clocklet to the parent, it results in the form submitting after you pick a time. After much digging i found out that this is because all the minute/hour hands are buttons, which didn't specify type="button", therefore resulting in the default behaviour of submitting a form its in.

I have seen through your source code, i believe a potential change to add type="button" is in ClockletDial.

Thank you for reporting the issue.
It is exactly as you said.
I will fix it soon.