Set Value To Null

With .50 I can't set the bound value to null.  An exception occurs.



<EjsButton @onclick="JonahButtonClick">Clear</EjsButton>
<EjsDatePicker @bind-Value="bulkEditDateValue" Placeholder='Completion...' @ref="@bulkEditDatePickerCompletion" Width="200px"></EjsDatePicker>


@code{
    protected EjsDatePicker<DateTime?> bulkEditDatePickerCompletion;
    protected DateTime? bulkEditDateValue;

    protected override void OnInitialized()
    {


    }
    protected async void JonahButtonClick()
    {
        bulkEditDateValue = null;
    }
}





1 Reply

BC Berly Christopher Syncfusion Team February 19, 2020 09:05 AM UTC

Hi Jonah, 
 
Greetings from Syncfusion support.  
  
We were able to replicate your reported problem. We have confirmed this as a bug at our end. We will fix and include the solution on our next week patch release, which is expected to be rolled out on February 25th, 2020. Please be patient until then.  
  
You can track the status of this problem by using the below feedback portal.  
  
  
Regards,  
Berly B.C 


Loader.
Up arrow icon