InputNumber weird behavior when using min value & allow-empty=false together #7045
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using InputNumber with :allow-empty="false" and :min value, when entering empty text, the cursor stays at 0 position while the value is set to 0. This causes errors when inserting numbers and forcing user to either select all the text and replace it or manually move the cursor.
Pull Request Link
#7044
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-46gqt1xb?file=src%2FApp.vue
Environment
it's very nice and warm
Vue version
3
PrimeVue version
4
Node version
20
Browser(s)
No response
Steps to reproduce the behavior
just play with it a bit in general, it's very hard to say but easily noticable
Expected behavior
After replacing the empty value with 0, the cursor should be moved tho 1st position (or just after the 0...)
The text was updated successfully, but these errors were encountered: