Skip to content

InputNumber Up Down buttons send form on submit #313

Closed
@fairking

Description

@fairking

Primevue: v1.3.2
My form is being sent when up/down buttons are pressed. See bellow example:

<form @submit.prevent="onSubmit">
  <InputNumber />
  <Button label="Save" />
</form>

The solution is to add type="button" to the up/down buttons in InputNumber component.
Thanks.

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