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

Issue with numericInput plus update function #145

Open
HenkWillcock opened this issue Mar 2, 2021 · 0 comments
Open

Issue with numericInput plus update function #145

HenkWillcock opened this issue Mar 2, 2021 · 0 comments

Comments

@HenkWillcock
Copy link

HenkWillcock commented Mar 2, 2021

Encountering an issue where you can't enter all the characters into a field without having to move the cursor around. With this example I can only enter the first 4 characters, then to enter the rest I have the move the cursor to the left.

Here's my input mask using ember's built in mut action which has the issue:

    <OneWayInputMask
      @id="taxNumber"
      @mask='999-999'
      class='docs-border docs-border-grey'
      @value={{this.taxNumber}}
      @update={{action (mut this.taxNumber)}}
      @options={{hash numericInput=true}}
    />

So as an example, the above InputMask only lets you input 1-234 before it gets stuck. This issue only happens with numericInput=true, if it's false, it seems to work OK.

Getting rid of @update and @value removes the issue, but of course now the value doesn't save when you submit the form.

    <OneWayInputMask
      @id="taxNumber"
      @mask='999-999'
      class='docs-border docs-border-grey'
      @options={{hash numericInput=true}}
    />

Any ideas what might be going on here?

Thanks.

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

No branches or pull requests

1 participant