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

Mask "separator.1" with decimalMarker "," sets input value string. #1211

Closed brylkovskyi closed 1 year ago

brylkovskyi commented 1 year ago

Conditions:

Conditions where issue is not reproduced

Steps to reproduce

  1. enter in input field text 12,2
  2. verify form control value

Actual: typeof input value is string, input value is "12,2" Expected: typeof input value is number, input value is 12.2

Stackblitz example https://stackblitz.com/edit/stackblitz-starters-2ztbvw?file=src%2Fmain.ts

andriikamaldinov1 commented 1 year ago

@brylkovskyi Hi. Can you check the new version, does it solve your problem?

https://stackblitz.com/edit/stackblitz-starters-twgftg?file=src%2Fmain.ts

sebike95 commented 1 year ago

Yes, thank you.

andriikamaldinov1 commented 1 year ago

@sebike95 @brylkovskyi Thanks for using Ngx-Mask. If you have any problems in the future please open a new issue with teamplate.