live-form-validation icon indicating copy to clipboard operation
live-form-validation copied to clipboard

Empty messages after hidden inputs

Open TomasA opened this issue 7 years ago • 1 comments

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;

TomasA avatar Jan 26 '18 08:01 TomasA

Could you prepare PR?

f3l1x avatar May 14 '18 10:05 f3l1x