Sunday, October 15, 2023
HomeiOS DevelopmentAngular enter change occasion if we use iOS "From Messages" on an...

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


I’ve 6 inputs for a code, which arrives by way of 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, however it appears there isn’t a occasion for this? I’m fully misplaced, as I would like 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 thought I’ve proper now’s 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?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments