RobinHerbots / RobinHerbots/Inputmask
autocomplete="one-time-code" and masked input
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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