ejs-datepicker error when showTodayButton="true" makes calendar always visible

Hi,

From a few (2-3) days ago we have detected an error in our datepicker when the property showTodayButton is setted to "true". There is an error in JavaScript and the calendar is always visible on page bottom.

Tested on Syncfusion.EJ2.AspNet.Core 18.3.0.44 and 19.1.0.54.

I think the problem is with the CDN version because the last weekend we haven´t this problem.

Our code:

[_Layout.cshtml]
   
   <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" rel='nofollow' href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" rel='nofollow' href="~/css/site.css" />
    <!-- Syncfusion Essential JS 2 Styles -->
    <link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/ej2/material.css" />
    <!-- Syncfusion Essential JS 2 Scripts -->
    <script src="https://cdn.syncfusion.com/ej2/dist/ej2.min.js"></script>
</head>
   
   
<body>
   ...
    <ejs-scripts></ejs-scripts>
</body>
   

[MyView.cshtml]

<ejs-datepicker id="DateCreationFrom" ejs-for="DateCreationFrom" openOnFocus="true" showTodayButton="false" allowEdit="false" showClearButton="true" cssClass="e-outline" max="@DateTime.Now"></ejs-datepicker>



[Google Chrome Console error when select a date]
constants.js:111 Uncaught TypeError: Cannot read property 'parentNode' of undefined
    at U (constants.js:111)
    at t.resetCalendar (constants.js:111)
    at t.close (constants.js:111)
    at e.notify (constants.js:111)
    at t.e.trigger (constants.js:111)
    at t.hide (constants.js:111)
    at t.closeEventCallback (constants.js:111)
    at e. (constants.js:111)
    at e.notify (constants.js:111)
    at t.e.trigger (constants.js:111)
U @ constants.js:111
t.resetCalendar @ constants.js:111
close @ constants.js:111
e.notify @ constants.js:111
e.trigger @ constants.js:111
t.hide @ constants.js:111
t.closeEventCallback @ constants.js:111
(anonymous) @ constants.js:111
e.notify @ constants.js:111
e.trigger @ constants.js:111
t.hide @ constants.js:111
t.changeEvent @ constants.js:111
t.triggerChange @ constants.js:111
changeHandler @ constants.js:111
t.selectDate @ constants.js:111
t.contentClick @ constants.js:111
t.clickHandler @ constants.js:111
t.clickHandler @ constants.js:111
constants.js:111 Uncaught TypeError: Cannot read property 'addEventListener' of null
    at t.wireEvents (constants.js:111)
    at t.bind (constants.js:111)
    at new t (constants.js:111)
    at t.inputBlurHandler (constants.js:111)
t.wireEvents @ constants.js:111
t.bind @ constants.js:111
t @ constants.js:111
t.inputBlurHandler @ constants.js:111


Thank you,

Attachment: Screenshot_20210527_072033_d3ab6a12.zip

2 Replies 1 reply marked as answer

BC Berly Christopher Syncfusion Team May 27, 2021 04:04 PM UTC

Hi Desarrollo, 
  
Greetings from Syncfusion support. 
  
We have confirmed the reported issue as a bug at our end and this fix will be included in our upcoming patch release scheduled on 1st June 2021. We will share the feedback for this issue on tomorrow (28th May 2021). 
  
We have prepared the custom patch for the reported issue and attached it below. So, we suggest you to refer the below attached ej2.min.js file in your application until the fix has been included.  
  
  
For your convenience, we have prepared the sample and attached it below. 
  
  
Regards, 
Berly B.C 



BC Berly Christopher Syncfusion Team May 28, 2021 05:42 AM UTC

Hi Desarrollo,


In addition to the previous response, we are sharing the feedback link for tracking the status of this fix.

Feedback: https://www.syncfusion.com/feedback/25748/


Regards,

Berly B.C


Marked as answer
Loader.
Up arrow icon