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

Cannot start input with character at end of suffix

Open bouc1620 opened this issue 4 years ago • 2 comments

🐞 bug report

Description

  • A user cannot start entering text/number in an input field with the character at the very end of the suffix for that input
  • Characters are added at beginning of input whenever the user writes all the characters from the suffix

🔬 Minimal Reproduction

stackblitz link

bouc1620 avatar Oct 22 '21 20:10 bouc1620

I am having this issue as well. E.g. if suffix is .sh then i won't be able to input h

It's caused by code here: https://github.com/JsDaddy/ngx-mask/blob/develop/projects/ngx-mask-lib/src/lib/mask-applier.service.ts#L101-L104

CharlieGreenman avatar Sep 17 '22 17:09 CharlieGreenman

I made a pull request here to solve this issue for anyone interested: https://github.com/JsDaddy/ngx-mask/pull/1039

CharlieGreenman avatar Sep 25 '22 02:09 CharlieGreenman

@bouc1620 @CharlieGreenman Hi . Thank you that using ngx-mask. @CharlieGreenman special thanks for contributing . Please try ngx-mask >= 14.2.4

NepipenkoIgor avatar Oct 27 '22 17:10 NepipenkoIgor

Yay!

CharlieGreenman avatar Oct 27 '22 18:10 CharlieGreenman