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

1) Avoid validate immediately after Reset. 2) Change to accept multiple classes for success and error (eg: tailwind CSS) #56

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

Conversation

natrayanp
Copy link

Avoid validate immediately after Reset and Change to accept multiple classes for success and error (eg: tailwind CSS)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Avoid validation to call immediately after Reset in Live = true mode
1) Variable "isreset" to avoid immediate call to validate function after Rest.  This is useful in scenarios where we have Clear buttons.

2) This is to have multiple classes in config for errorClass & successClass instead of having only single classes in them.

Example:
let defaultConfig = {

    errorClass: 'text-sm text-red-500',         //Styled using tailwind CSS
    successClass:'text-sm text-gray-500',
   ........
};
@natrayanp natrayanp changed the title Avoid validate immediately after Reset and Change to accept multiple classes for success and error (eg: tailwind CSS) 1) Avoid validate immediately after Reset. 2) Change to accept multiple classes for success and error (eg: tailwind CSS) Dec 11, 2020
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.

None yet

1 participant