live-form-validation
live-form-validation copied to clipboard
Empty messages after hidden inputs
LiveForm generates a tag for message for hidden inputs even when I specify 'no-show-valid' and 'no-live-validation' class. Those tags are empty but have initial margin so it breaks my design.
Problem is in processServerErrors method where disabled classes are not checked. This function call method getMessageElement which create a tag for message. The processServerErrors method is called in Nette.initForm function.
My suggestion is as follows:
LiveForm.processServerErrors = function(el) {
if (this.hasClass(el, this.options.disableLiveValidationClass))
return;
Could you prepare PR?