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: when increment/decrement button are used on mobile, each click makes the keyboard appear #6851

Closed
silviagreen opened this issue Jul 8, 2024 · 1 comment · Fixed by #7189 · May be fixed by leoo1992/GeradorQRCode#95
Labels
Device: Mobile Issue or pull request is *only* related to Mobile device
Milestone

Comments

@silviagreen
Copy link

Describe the bug

Open InputNumber on mobile phone, "Vertical" section.
https://www.primefaces.org/primereact/inputnumber/

Click on the increment / decrement buttons.

Button press causes the mobile keyboard to be shown and hidden repeatedly on multiple touches. Also, some browser may zoom in and make using the button difficult.

Reproducer

https://www.primefaces.org/primereact/inputnumber/

PrimeReact version

10.7.0

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

Safari on IOs 17.5.1

Steps to reproduce the behavior

Open InputNumber on mobile phone, "Vertical" section.
https://www.primefaces.org/primereact/inputnumber/

Click on the increment / decrement buttons.

Expected behavior

Using buttons on mobile shouldn't make the keyboard appear but should change the value.

@silviagreen silviagreen added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 8, 2024
@melloware melloware added Device: Mobile Issue or pull request is *only* related to Mobile device and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 8, 2024
@melloware
Copy link
Member

Yep it appears the InputText part of the number has focus which is why the keyboard is displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Device: Mobile Issue or pull request is *only* related to Mobile device
Projects
None yet
2 participants