-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event show.datetimepicker not working #227
Comments
Probably releated: #190 |
Hello, I have the same problem with version 5.1.2 |
Yeah, I tested it and it is related to that issue, but why is it merged and closed if it's not? |
It looks like this repo is not maintained anymore. |
I have the same issue, please fix! @Eonasdan |
Same, can you please fix it. |
Bug is still in version 5.1.3, any update soon? or remove it from the docs if there will be no fix? |
Show.datetimepicker event which has no parameters(data), _notifyEvent function of DateTimePicker processing the show event will go wrong, |
Quick fix into function "_notifyEvent ".
|
I've run into this same issue, along with a related issue where I wanted the change.datetimepicker event to be triggered when the date is cleared using the clear button. But because e.date is false when the date is cleared, the function returns and the event never gets cleared. Looking at quick fix by @shaan1974 , I think the issue could actually be fixed by simply moving a parenthesis! My fix (without needing to update the source) is below. Notice the placement of the parentheses when compared to original.
|
Just wanted to give a huge shoutout to @shaan1974 , that solution worked for me. Thank you ! |
This solution (@lesilent ) worked very well without the necessity to modify the source code. Thank you ! |
@lesilent I may be doing something wrong but when I insert this code, I get an error "err: TypeError: Cannot read property 'Constructor' of undefined". Any thoughts on why this isn't working for me? |
@takinola It sounds like your code didn't load the tempusdominus.js isn't properly prior to executing the code fix. Make sure that it's loaded properly. If you're still having issues, then try reproducing the issue in a jsfiddle. |
Hi, as shown in this fiddle
https://jsfiddle.net/y81Lkv9c/1/
the event show.datetimepicker is never triggered.
The text was updated successfully, but these errors were encountered: