Skip to content

Calendar icon button submitting form #114

Closed
@fairking

Description

@fairking

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions