Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

remove dependency on required, possibility to add new options without the need to distroy validator, added tests #608

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

adilsonarc
Copy link

marge dev with master

adilshow added 3 commits January 13, 2017 16:10
the problem was that options were not been saved, because at merge of options (default, current, new) the current options were not considered as were lost on the process, "$this.data()" didn't work at least for this purpose.

the second problem was that the constructor of new validator was depend of "if(!data)" that was only true on the first call, what caused to call with new options were never saved at data.
remove dependency on required so multiple input custom validations don't have double message

example:

Input telephone and mobilephone either one of the is required but not both.
In the case of fill only one filed, the other would get required validator error.
@adilsonarc adilsonarc changed the title Dev remove dependency on required, possibility to add new options without the need to distroy validator, added tests Jan 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant