Angular enter change occasion if we use iOS “From Messages” on an enter after SMS arrives

0
9

[ad_1]

I’ve 6 inputs for a code, which arrives through SMS.

<enter kind="tel" maxlength="1" max="1" title="chars[1]" #char_one (paste)="OnPaste($occasion)" (enter)="SplitCodeIntoInputs(char_one)">
<enter kind="tel" maxlength="1" max="1" title="chars[2]" #char_two (paste)="OnPaste($occasion)" (enter)="SplitCodeIntoInputs(char_two)">
<enter kind="tel" maxlength="1" max="1" title="chars[3]" #char_three (paste)="OnPaste($occasion)" (enter)="SplitCodeIntoInputs(char_three)">
<enter kind="tel" maxlength="1" max="1" title="chars[4]" #char_four (paste)="OnPaste($occasion)" (enter)="SplitCodeIntoInputs(char_four)">
<enter kind="tel" maxlength="1" max="1" title="chars[5]" #char_five (paste)="OnPaste($occasion)" (enter)="SplitCodeIntoInputs(char_five)">
<enter kind="tel" maxlength="1" max="1" title="chars[6]" #char_six (paste)="OnPaste($occasion)" (enter)="SplitCodeIntoInputs(char_six)">

On an iOS telephone after the SMS arrives you’ll be able to click on into an enter and use their function to repeat the code “from messages” into the enter, nevertheless it appears there is no such thing as a occasion for this? I’m utterly misplaced, as I want to separate the code into the 6 inputs.

What occurs proper now: The entire code is pasted into the enter, (paste) and (enter) are ignored.

The one concept I’ve proper now could be to create a loop, which observes the inputs and executes the code if size is > 1, however this feels extra like a workarround, is there actually no occasion for this?

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here