Skip to content

Conversation

slykar
Copy link

@slykar slykar commented Sep 20, 2013

There is a problem with plugin not validating fields when focus is out. This was reported by some people to work on "random" basis.

The problem is on line 239. The check fails because this.optional returns string "dependency-mismatch" and the whole if statement returns wrong bool result. Sometimes it works, because the field is in this.submited array

The whole method optional should be probably changed.
This change fix problem for me, but I'm not sure about other use cases.

I'm not knee deep in the code.

There is a problem with plugin not validating fields when focus is out. This was reported by some people to work on "random" basis.

The problem is on line 239. The check fails because `this.optional` returns string `"dependency-mismatch"` and the whole if statement returns wrong bool result. Sometimes it works, because the field is in `this.submited` array

The whole method `optional` should be probably changed.
This change fix problem for me, but I'm not sure about other use cases.

I'm not knee deep in the code.
@jzaefferer
Copy link
Collaborator

@nschonni could you review this?

@ghost ghost assigned nschonni Jan 14, 2014
@nschonni
Copy link
Collaborator

Not validating till submit matches the HTML5 behaviour (vanilla example without this library http://jsfiddle.net/DYRLR/)

@nschonni nschonni closed this Jan 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants