Skip to content
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

Empty messages after hidden inputs #43

Open
TomasA opened this issue Jan 26, 2018 · 1 comment
Open

Empty messages after hidden inputs #43

TomasA opened this issue Jan 26, 2018 · 1 comment

Comments

@TomasA
Copy link

TomasA commented Jan 26, 2018

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;
@f3l1x
Copy link
Member

f3l1x commented May 14, 2018

Could you prepare PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants