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

When using empty mask the cursor moves to the start of a textbox on focus

Open MannIncognito opened this issue 5 years ago • 5 comments

Examples that cause the issue:

<input value="these" mask="">
<input value="cause" [mask]="">
<input value="the" [mask]="null">
<input value="issue" [mask]="myEmptyProperty">

Issue tested on 8.2.0.

MannIncognito avatar Aug 24 '20 20:08 MannIncognito

I have a similar problem

fernandokenji avatar Sep 24 '20 18:09 fernandokenji

Same for me. Any workaround?

BenDevelopment avatar Oct 02 '20 12:10 BenDevelopment

A workaround could be to set default mask as "match any entry". I've tried this:

<input mask="A*"/>

But I cannot enter special characters nor space. Somebody knows what's the pattern for "any characters"?

BenDevelopment avatar Oct 02 '20 14:10 BenDevelopment

@NepipenkoIgor is there currently a resolution / workaround for this behavior?

tyanders1987 avatar Feb 19 '21 03:02 tyanders1987

Any news here?

mhagnumdw avatar Aug 07 '22 00:08 mhagnumdw

@mhagnumdw @tyanders1987 @fernandokenji @MannIncognito Thanks for using Ngx-mask. What do you expect to see when you use an empty mask ? And can you provide an example on stackbiltz ?

andriikamaldinov1 avatar Aug 07 '23 12:08 andriikamaldinov1

@mhagnumdw @tyanders1987 @fernandokenji @MannIncognito Close issue because there's no activity. If this problem is still relevant, please open the new issue with template and provide stackblitz.

andriikamaldinov1 avatar Aug 18 '23 09:08 andriikamaldinov1