Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar icon button submitting form #114

Closed
fairking opened this issue Dec 18, 2019 · 1 comment
Closed

Calendar icon button submitting form #114

fairking opened this issue Dec 18, 2019 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@fairking
Copy link

fairking commented Dec 18, 2019

Got the following html:

<form @submit.prevent="formSubmit">
  // Some other fields
  <Calendar id="from_date" v-model="item.fromDate" date-format="dd.mm.yy" :step-minute="15" :showTime="!item.allDay" :showIcon="true" />
  <Button :label="Save" type="submit" class="pull-right" style="width:auto;" />
</form>

and the typescript:

  methods: {
    formSubmit() {
      // Save the form
    }
  }

Apparently if I click the Calendar button it triggers the formSubmit method.

image

@fairking fairking changed the title Calendar icon submitting form Calendar icon button submitting my form Dec 18, 2019
@fairking
Copy link
Author

These buttons submit form as well:

image

@cagataycivici cagataycivici self-assigned this Dec 20, 2019
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Dec 20, 2019
@cagataycivici cagataycivici added this to the 1.0.0-rc.2 milestone Dec 20, 2019
@cagataycivici cagataycivici changed the title Calendar icon button submitting my form Calendar icon button submitting form Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants