Skip to content

InputNumber: Form does not submit on enter #4199

@Anubarak

Description

@Anubarak

Describe the bug

Usually you can submit forms via enter on inputs.
This works for default <input type="text"> as well as your InputText component - but it does not work for InputNumber

You can check the example link below, go to an input, press enter and see the alert "form submitted"
Works for InputText but not for InputNumber

Reproducer

https://codesandbox.io/p/sandbox/primevue-demo-forked-mkztsw?file=%2Fsrc%2FApp.vue%3A8%2C38

PrimeVue version

3.30

Vue version

3.x

Language

ALL

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. go to https://codesandbox.io/p/sandbox/primevue-demo-forked-mkztsw?file=%2Fsrc%2FApp.vue%3A29%2C10-29%2C24
  2. go to the inputnumer component
  3. press enter
  4. see no form submit is triggered

Expected behavior

form should be submitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions