InputNumber: selection state is not changed when pressing arrow right and arrow left #6837
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When InputNumber is focused using the keyboard the whole number becomes selected. After that, it's impossible to remove the selection by pressing the Left arrow key. If the field has a prefix, it's also impossible to remove the selection by pressing the Right arrow key.
Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-zf2bod?file=src%2FApp.vue
PrimeVue version
4.0.5
Vue version
4.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
Chrome 130
Steps to reproduce the behavior
Press "Tab" to focus the input field.
Press the Left arrow key.
Press the Right arrow key.
Selection has not changed.
Expected behavior
Selection is removed and the cursor is set to the beginning of the text if the Left arrow is pressed or to the end of the text if the Right arrow is pressed.
The text was updated successfully, but these errors were encountered: