ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

Input marked dirty after updating to Angular 17

Open patrickuhlmann opened this issue 1 year ago • 3 comments

When we updated from Angular 16 to Angular 17 (which included updating related libraries like ngx-mask), we faced a regression. A input field in a form was marked dirty right after initialisation. I created a StackBliz to reproduce the problem. Just click the button "Check dirty" and you will see as output that the input field using ngx-mask is dirty while the others are not dirty. All are assigned the same way.

I am not sure if this is related to a number of other issues that are already closed regarding wrong "dirty" behavior.

As a workaround we are currently using Version 16.4.2 of ngx-mask with Angular 17. This seems to work.

patrickuhlmann avatar Apr 24 '24 21:04 patrickuhlmann

16.4.2

We are facing the same issue. Thank you for providing a version to fallback to in the meantime.

achapman009 avatar Apr 25 '24 12:04 achapman009

I'm seeing this behavior when upgrading from ngx-mask 17.0.5 to 17.0.6

I forked the above stackblitz and just backed off to 17.0.5 and the input is not dirty

joelryan2k avatar Apr 29 '24 12:04 joelryan2k

Do you have an approximate time frame when this fix (1358): add trailing zero when mask="separator.1" and leadZero="true" will work with Angular 17 ?

matviienko-danylo avatar May 21 '24 16:05 matviienko-danylo

Hello any updates on this bug ?

HabooshHaddad avatar Jul 15 '24 12:07 HabooshHaddad

@HabooshHaddad @joelryan2k @achapman009 @patrickuhlmann Thanks for using Ngx-mask. Please update to latest version. It example all work as expected - https://stackblitz.com/edit/stackblitz-starters-2ws8jj?file=package.json

andriikamaldinov1 avatar Jul 18 '24 15:07 andriikamaldinov1

@matviienko-danylo this request was merged with version 17.0.8

andriikamaldinov1 avatar Jul 18 '24 15:07 andriikamaldinov1