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

IOS keyboard no minus option #372

Closed
jobjen02 opened this issue Feb 2, 2023 · 3 comments · Fixed by #379
Closed

IOS keyboard no minus option #372

jobjen02 opened this issue Feb 2, 2023 · 3 comments · Fixed by #379
Labels
bug Something isn't working has workaround A workaround for an issue exists

Comments

@jobjen02
Copy link

jobjen02 commented Feb 2, 2023

Vue Currency Input version

1.22.6

Vue version

2.6.11

What browser are you using?

Safari - IOS

What operating system are you using?

IOS

Reproduction link

https://codesandbox.io/s/vue-currency-input-y8f06f

Describe your issue

The input of an negative number is not possible on IOS. Both decimal and numeric inputmode does not support a minus on the IOS keyboard.
It doesn't have anything to do with me using a older version of the package, since it is an IOS thing.

A solution would be to allow the text keyboard or maybe another custom solution is possible.

If I'm right, this is since the release of IOS 13.

IMG_7239

@dm4t2
Copy link
Owner

dm4t2 commented Feb 2, 2023

Everything is positive at Apple 😆

A workaround in v3 might be to use a value range {max: 0}, which automatically adds a minus sign.

The best solution would be to preserve an existing inputmode attribute. So if you use <input inputmode="text">, Vue Currency Input will not override it.

@jobjen02
Copy link
Author

jobjen02 commented Feb 2, 2023

If I add inputmode="text" , the Vue Currency Input does override it to either decimal or numeric. How can I solve that?

@dm4t2
Copy link
Owner

dm4t2 commented Feb 2, 2023

Until my proposal is implemented, it can be solved like this: https://codesandbox.io/s/vue-currency-input-372-5vh10h

@dm4t2 dm4t2 added has workaround A workaround for an issue exists bug Something isn't working labels Feb 6, 2023
@dm4t2 dm4t2 closed this as completed in e9fb330 Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has workaround A workaround for an issue exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants