RobinHerbots / RobinHerbots/Inputmask

autocomplete="one-time-code" and masked input

Open
#1,985 6 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6.5k
Forks
2.1k
Avg merge
4d 16h
Merged PRs (30d)
1

Description

Hello
I'm using inputmask, and two-step auth in my project.
But when I'm try to use autocomplete="one-time-code" for automatically get codes from iMessage, safari can't paste code with masked input. On inputs without mask it works as expected.

Code:
$("#smscode").inputmask({"mask" : "999999", showMaskOnHover: false});

Safari 12.0 (14606.1.36.1.6)
MacOS Mojave beta 10.14 (18A371a)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided #smscode initialization using inputmask and reproduce the autocomplete="one-time-code" behavior in Safari with the stated masked and unmasked inputs. Trace how the one-time code is inserted into the masked field; done means Safari can populate the six-digit masked input without breaking normal masking.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.