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

InputMask onComplete bug #1151

Closed
smilovanovic opened this issue Oct 28, 2016 · 2 comments
Closed

InputMask onComplete bug #1151

smilovanovic opened this issue Oct 28, 2016 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@smilovanovic
Copy link

onComplete event is triggering too early, ngModel has bad value when onComplete is triggered.

<p-inputMask mask="9999" [(ngModel)]="model" [placeholder]="placeholder" (onComplete)="onComplete()"></p-inputMask>

For the example above when you type in 4 digits, let's say 1111, in onComplete method ngModel has value 111_ or what ever the slotChar option value is.

@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 29, 2016
@cagataycivici cagataycivici added this to the 1.0.0-RC1 milestone Oct 29, 2016
@cagataycivici cagataycivici self-assigned this Oct 29, 2016
@cagataycivici
Copy link
Member

This is also reported by a PrimeNG PRO user and we're on it for RC1. Thank you.

@cagataycivici
Copy link
Member

cagataycivici commented Oct 31, 2016

I see, the onComplete is fired at correct time but when it is fired ngModel is 1 step behind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants