With StrictMode="true" component doesn't always revert invalid text

Hello,


When using the DatePicker as follows:

<Syncfusion.Blazor.Calendars.SfDatePicker @bind-Value="@CreationDateFilter" StrictMode="true"/>


@code{

public DateTime? CreationDateFilter { get; set; }

}


It starts out with a blank date as expected. If I enter a valid date or choose a valid date from the calendar that is populated as expected. If I overtype the valid date with an invalid string and tab out the previously selected date is set back into the text box as expected.

However, if I start out with a blank date and type an invalid string and tab out, the invalid string is retained rather than the text box reverting to blank which is what I would expect it to do.

Could you please advise how I can achieve this?

Thanks,

Chuck


5 Replies 1 reply marked as answer

PM Ponmani Murugaiyan Syncfusion Team February 4, 2022 01:14 PM UTC

Hi Chuck, 

We able to replicate the reported issue in our end, we will update further details in 2 business days February 8, 2022. 

Regards, 
Ponmani M 



PM Ponmani Murugaiyan Syncfusion Team February 7, 2022 02:33 PM UTC

Hi Chuck, 

We have considered the reported issue “DatePicker with strict mode true does not reset invalid date when previous value is null” as bug in our end. The fix will be included in the upcoming patch release which is expected to be rolled out on February 16, 2022. You can track the status using the below feedback link. 


Regards, 
Ponmani M 



PM Ponmani Murugaiyan Syncfusion Team February 16, 2022 05:59 AM UTC

Hi Chuck, 

We are glad to announce that fix for the issue “DatePicker with strict mode true does not reset invalid date when previous value is null" has been rolled out in our weekly patch release. We request you to upgrade the package to “19.4.52” version to get rid of this issue. Please find the sample below. 


Regards, 
Ponmani M 


Marked as answer

CR Chuck Richardson February 17, 2022 12:57 AM UTC

Hi Ponmani,


I'm pleased to confirm that this issue has been resolved in 19.4.52.


Thanks for your help,


Chuck



PM Ponmani Murugaiyan Syncfusion Team February 17, 2022 04:50 AM UTC

Hi Chuck, 

Welcome, we are glad to hear that the issue has been resolved.  

Regards, 
Ponmani M 


Loader.
Up arrow icon