Closed aripddev closed 4 years ago
Fixed with commit: https://github.com/primefaces-extensions/core/commit/ca45110c43737823e0573caeeae4083ce8b7961c
If you need this fix now here is a MonkeyPatch you can add to your JS file that fixes it.
PrimeFaces.widget.ExtCreditCard.prototype.refresh = function(cfg) {
PrimeFaces.widget.BaseWidget.prototype.refresh.call(this, cfg);
$(document).ready(function() {
const blur = new Event('blur');
const change = new Event('change');
$('.ui-state-filled').each(function(index) {
this.dispatchEvent(blur);
this.dispatchEvent(change);
})
});
};
Card image has been lost after validation not passed any form items. Below is the picture of before and after form submission.