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] Pressing to the right doesn't select the number #779

Open
varganatt opened this issue Jan 10, 2024 · 1 comment
Open

[iOS] Pressing to the right doesn't select the number #779

varganatt opened this issue Jan 10, 2024 · 1 comment

Comments

@varganatt
Copy link

Current behavior

The caret is positioned to the left or right of the suffix text.
image

Expected behavior

The number should be automatically selected.
image

Steps to reproduce the problem

  1. Use autoNumeric version v4.10.2
  2. In the browser Safari version 16.6.1 or 17.0.3
  3. On the iOS/iPhone operating system
  4. Go to https://autonumeric.org/ or instantiate the autoNumeric object with the following options:
new AutoNumeric(document.body, "1", { suffixText: "xxx" })
  1. Click somewhere within the red marked area in the input (see screenshot)

image

Link to live example (ie. Codepen)

Scroll to the example demo on the Autonumeric home page.
https://autonumeric.org/
https://web.archive.org/web/20230404172247/https://autonumeric.org/

Further info

  • Note that the screenshots are not from an iPhone, they are just used to better illustrate the issue.
  • This bug is not present on Android Chrome, Android Firefox, desktop Chrome and deskstop Firefox.
  • This bug is not present when clicking other parts of the input field.
@AlexandreBonneau
Copy link
Member

I'll need a PR for this one, since I do not own an iPhone to test this further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants