Strange behavior with Literals at the end of Regex masks

I am using the following SfMaskedEdit input views and getting some strange behavior.

<syncmaskededit:SfMaskedEdit x:Name="maskedEdit" Value="{Binding MaskValue}"
Keyboard="Numeric" MaskType="RegEx" Mask="[0-9]{0,7}[.]{0,1}[0-9]{0,3}%"
ValidationMode="KeyPress" ValueMaskFormat="ExcludePromptAndLiterals"
PromptChar="_" ValueChanged="maskedEdit_ValueChanged"/>


The above mask adds values beyond the cursor position on the fourth character input. The values added are the second third and fourth.

Example: if user input is "1234%" the value displayed is "1234|234%" with the cursor position at '|' between the 4 and 2.


<syncmaskededit:SfMaskedEdit x:Name="maskedEdit" Value="{Binding MaskValue}"
Keyboard="Numeric" MaskType="RegEx" Mask="[0-9]{0,7}[.][0-9]{3}%"
ValidationMode="KeyPress" ValueMaskFormat="ExcludePromptAndLiterals"
PromptChar="_" ValueChanged="maskedEdit_ValueChanged"/>


The above mask exibits strange behavior while using backspace to remove input

At 4 characters remaining backspace removes the fourth then skips the third character, moving the cursor between the second and third, and inserts a space at the beginning of the input

Example: if the input value is "1234____%" and backspace is pressed, the displayed value becomes "_12|3%" with the cursor position at '|' between the 2 and 3.

These examples all began with a blank input.


Attachment: ExampleVideo_9463154a.zip

5 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team December 16, 2021 03:19 PM UTC

Hi Nathan York, 
 
Thanks for your patience. 
 
We have checked the reported problem “Strange behavior while using some grouping in RegEx type” in our source and confirmed it as a defect. So, logged a bug report for this. You can keep track of the bug from the feedback portal below.  
 
 
NOTE: The provided feedback link is private, and you need to login to view this feedback. 
 
We will include the fix in our next weekly NuGet which is expected to be rolled out on January 4, 2022. If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal. 
 
Regards,  
Eswaran.  



ET Eswaran Thirugnanasambandam Syncfusion Team January 4, 2022 01:48 PM UTC

Hi Nathan, 
 
The reported issues occur only when we use the similar regex more than once in the Mask and it makes the issue little complex. So, we need some more time to fix it and we will include the fix for the reported issues in our next weekly NuGet release which is expected to be rolled out on January 11, 2022. 
 
Regards, 
Eswaran. 



ET Eswaran Thirugnanasambandam Syncfusion Team January 11, 2022 01:29 PM UTC

Hi Nathan, 
 
As we have mentioned in our previous update, the reported issue occurring only when we are using the similar regex more than once in the Mask with optional regex and it makes the issue fix difficult. So, it is taking more time to fix the issue and also having more test cases to ensure. We will include the fix in our 2021 volume 4 service pack release, which is planned to be released at the end of January 2022. If we completed it prior, then we will provide you a patch for the fix. Until then please use the below modified to overcome the problems in sample level. 
 
1.            [0-9]{0,7}.[0-9]{0,3}% 
2.            [0-9]{0,7}.[0-9]{3}% 
 
Regards, 
Eswaran. 



VR Vignesh Ramesh Syncfusion Team January 31, 2022 06:00 PM UTC

Hi Nathan York, 

We have fixed the reported issues and due to delay in testing, we are unable to include the fix in our service pack release. Please find the patch for these issue fixes with the version of 19.4.0.38 version. 

The patch and NuGet for the fixes can be downloaded from the below link. 

Please find the patch setup from below location: 

(or) 

Please find the patch assemblies alone from below location: 

(or) 

Please find the NuGet from below location: 
 
Assembly Version: 19.4.0.38 

Disclaimer: 
Please note that we have created this patch for version 19.4.0. 83 specifically, to resolve the issues reported in this forum. If you have received other patches for the same version for other products, please apply all patches in the order received. 

Note: Please clear the NuGet cache, before using the latest one. 

The fix for the reported issues will be included in our upcoming weekly NuGet release which is expected to be rolled out on February 8, 2022. We appreciate your patience until then. 

Regards, 
Vignesh Ramesh.


ET Eswaran Thirugnanasambandam Syncfusion Team February 8, 2022 02:14 PM UTC

Hi Nathan York, 
 
We have fixed the reported issue “Strange behavior while using some grouping in RegEx type and the fix is included in our weekly NuGet of February 8, 2022.  
  
NuGet Version: v19.4.0.50 
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.  
  
Regards,  
Eswaran  


Loader.
Up arrow icon