Fix elementValidate event not being fired on hidden elements #1152

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@mcfedr
Contributor
mcfedr commented Oct 3, 2012

No description provided.

@travisw
travisw commented Oct 12, 2012

mootools-more-1.4.0.1

Change this

if (validator && field.isVisible()) this.fireEvent('elementValidate', [isValid, field, className, warn]);

to this

if (validator && (field.isVisible() || !this.options.ignoreHidden)) this.fireEvent('elementValidate', [isValid, field, className, warn]);
@mcfedr mcfedr closed this Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment