Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputNumber: selection state is not changed when pressing arrow right and arrow left #6837

Closed
serhiismt opened this issue Nov 22, 2024 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@serhiismt
Copy link

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.

@serhiismt serhiismt added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Nov 22, 2024
@tugcekucukoglu tugcekucukoglu changed the title Component Name: InputNumber InputNumber: selection state is not changed when pressing arrow right and arrow left Nov 25, 2024
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 25, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.2.4 milestone Nov 25, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
Status: Done
Development

No branches or pull requests

2 participants