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
DatePicker: JavaScript error during ajax request #6641
Comments
I can't reproduce? Run |
I see it now thanks! |
OK can you add this MonkeyPatch to your JS code that loads after PF and see if its fixed. if ($.prime && $.prime.datePicker) {
$.prime.datePicker.prototype._destroy = function() {
this.hideOverlay();
};
} |
Yes...it's fixed! |
Thanks for reporting I would have never seen this if not for that break on JS error checkbox! |
No problem. |
Can the fix patched also to the 8.x.x versions? |
Most likely not in 8.0 as the fix is already included in 10.0.0 and 11.0.0 and you have the MonkeyPatch you can use above for 8.0 |
Describe the defect
The datePicker widget javascript contains the method "_destroy" which gets called during an ajax request when the component is rerendered. This destroy method calls 2 methods: this.restoreOverlayAppend() and this.onOverlayHide() - neither function seems to be defined anywhere and creates javascript errors.
Reproducer
Environment:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The datePicker destroy code should succeed without javascript errors.
Example XHTML
Example Bean
no bean required
The text was updated successfully, but these errors were encountered: