igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

igxMask always set the symbol '9' as a fillable spot

Open teodosiah opened this issue 4 years ago • 15 comments

Description

If the mask is set to "'(966) #### ####'" when you enter into edit mode the symbol '9' is always treated as a fillable spot.

  • igniteui-angular version: 9.0.1

Steps to reproduce

  1. Run the sample
  2. Click on the input

Result

The digit 9 is replaced as fillable spot.

Expected result

To be able to set some indication in case you want the symbol '9' to be treated as a digit, not special symbol and after the input is clicked to looks like (966) _ _ _ _ _ _ _ _.

Attachments

https://stackblitz.com/edit/angular-9kocto

teodosiah avatar Apr 09 '20 09:04 teodosiah

Since 9 is one of the standard mask characters that specifies a digit input, that's sort of the expected behavior. As the Mask directive currently doesn't support escaping mask characters, we'll mark this as a feature request for that.

PS: I understand a decent workaround in this case would be using a prefix, though that'd exclude it from selection.

damyanpetev avatar Apr 21 '20 07:04 damyanpetev

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Jun 21 '20 00:06 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Oct 11 '20 00:10 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Dec 12 '20 00:12 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Feb 12 '21 00:02 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Apr 14 '21 00:04 github-actions[bot]

@damyanpetev There's a particular issue with using the prefix, and this is that the prefix is not included in the ngModel value or your form value and thus is not sent to the server. If the prefix is appended on submit to the value, then it's shown in the editor as both prefix and the start of the value. Character escaping should be implemented in the mask.

kdinev avatar May 25 '21 12:05 kdinev

@kdinev I agree, that's why the issue is still open :) Whether the static part is part of the value is based on use, but fact is atm there no choice for that (think data mode of old) without a custom handler on submit and escaping chars will solve that.

damyanpetev avatar May 26 '21 16:05 damyanpetev

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Jul 26 '21 00:07 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Sep 25 '21 00:09 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Nov 27 '21 00:11 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Jan 27 '22 00:01 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Mar 29 '22 00:03 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Jun 05 '22 00:06 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Aug 06 '22 00:08 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Oct 08 '22 00:10 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Dec 10 '22 00:12 github-actions[bot]

There has been no recent activity and this issue has been marked inactive.

github-actions[bot] avatar Feb 10 '23 00:02 github-actions[bot]