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

Angular: cutting/pasting input value does not change model value. #2398

Open
jvanheesch opened this issue Sep 25, 2020 · 2 comments
Open

Angular: cutting/pasting input value does not change model value. #2398

jvanheesch opened this issue Sep 25, 2020 · 2 comments

Comments

@jvanheesch
Copy link

I am not 100% sure it's a bug, but it seemed strange enough to report.

  • Minimal reproducible example
    https://github.com/jvanheesch/inputmask-angular
  • Steps to reproduce:
    • npm i
    • npm run start
    • open browser and navigate to localhost:4200
    • type 42 in input field
      -> someModelValue is updated, as demonstrated by span next to input
    • select input value and cut
      -> expected: someModelValue to be ""
      -> actual: someModelValue is unchanged
  • Browser
    Chrome/Firefox
  • Inputmask version
    5.0.5
@jamesnben
Copy link

5.0.3 does this properly but gets the model wrong.

5.0.1 appears to do everything correctly:

https://stackblitz.com/edit/angular-10-herbots-jquery-inputmask?file=src%2Fapp%2Fapp.component.html

@i3anaan
Copy link

i3anaan commented Oct 15, 2021

Ran into the same issue with angular on version 5.0.6 of inputmask, issue was still present.

Thanks @jamesnben version 5.0.1 does seem to work fine 👍

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

3 participants