JsDaddy / ngx-mask

Angular Plugin to make masks on form fields and html elements.
https://jsdaddy.github.io/ngx-mask
MIT License
1.16k stars 300 forks source link

Number input not editable when mask is empty #1274

Closed rdebeasi closed 11 months ago

rdebeasi commented 12 months ago

🐞 bug report

Is this a regression?

Not as far as I'm aware

Description

When a blank mask is applied to an input with type="number", the input is not editable. (Our component has optional masking, and when the masking is disabled, we set mask to an empty string.) This behavior does not occur with type="text".

πŸ”¬ Minimal Reproduction

https://stackblitz.com/edit/angular-ivy-mask-eqarfj?file=src%2Fapp%2Fapp.component.html

πŸ”₯ Exception or Error

No error message

🌍 Your Environment

Angular Version: 16.1.0


Angular CLI: 16.2.8
Node: 16.14.2
Package Manager: yarn 1.22.19
OS: darwin arm64

Angular: 16.2.11
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1600.6
@angular-devkit/build-angular   16.0.6
@angular-devkit/core            16.2.8
@angular-devkit/schematics      16.2.8
@angular/cdk                    16.2.1
@angular/cli                    16.2.8
@schematics/angular             16.2.8
ng-packagr                      16.2.3
rxjs                            6.6.7
typescript                      4.9.5
zone.js                         0.13.3



Anything else relevant?

Thank you!!!

ms-emp commented 11 months ago

Any fix for this?

andriikamaldinov1 commented 11 months ago

@ms-emp @rdebeasi Thanks for using Ngx-mask. Please update to version 16.4.2. It example all work as expected - https://stackblitz.com/edit/angular-ivy-mask-yxqxnw?file=src%2Fapp%2Fapp.component.html

rdebeasi commented 11 months ago

Awesome - that fixes it on my end as well. Thank you!!