Error "Cannot read properties of null (reading 'getFullYear')" when setting "min" attr to value null dynamically

I'm working with two date pickers in my solution, Begin and End. ​End date picker has min attribute set dynamically and sometimes it can be null. When it's set to null I get the error "Cannot read properties of null (reading 'getFullYear')" ​in browser console and the End date picker kinda breaks, I can't enable or disable it. You have to refresh the page after that.


I'm attaching a sample test:

https://stackblitz.com/edit/alvagabriel-overlap-axisy-ryr5y3


Please let me know if there's something I'm doing wrong or if this is a bug. Thank you.


3 Replies 1 reply marked as answer

DR Deepak Ramakrishnan Syncfusion Team September 24, 2021 01:20 PM UTC

Hi Gabriel,

Greetings from Syncfusion support.

We have validated the reported issues with provided sample in our end . And we couldn’t able to reproduce the reported issue with latest version (19.2.62) . So we suggest you to upgrade your version to the latest and avail the tons of features and fixes included in it.




If you are still facing the issue after the above suggestion kindly provide the following details to validate the issue further in our end

1.Replication procedure to reproduce the issue
2.Video demonstration which reproduces the issue

Kindly revert us if you have any concerns in it.

Thanks,
Deepak R



Marked as answer

GA Gabriel Alva September 24, 2021 04:48 PM UTC

You are absolutely right, I updated @syncfusion/ej2-angular-calendars from 19.1.56 from 19.2.62 ​and that fixed the issue. I'll keep that in mind for other possible issues in the future. Thank you!​



DR Deepak Ramakrishnan Syncfusion Team September 27, 2021 07:05 AM UTC

Hi Gabriel, 
 
Thanks for your update. 
 
We are glad that your requirement has fulfilled . We are always happy to assist you if you need any further assistance. 
 
Thanks, 
Deepak R. 


Loader.
Up arrow icon