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
- go to https://codesandbox.io/p/sandbox/primevue-demo-forked-mkztsw?file=%2Fsrc%2FApp.vue%3A29%2C10-29%2C24
- go to the inputnumer component
- press enter
- see no form submit is triggered
Expected behavior
form should be submitted
Describe the bug
Usually you can submit forms via
enteron inputs.This works for default
<input type="text">as well as yourInputTextcomponent - but it does not work forInputNumberYou can check the example link below, go to an input, press
enterand 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
Expected behavior
form should be submitted