Skip to content

Attach to form result in unwanted side effect of form submission #1

Closed
@eimiveritas

Description

@eimiveritas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions