Skip to content

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

Open
natrayanp wants to merge 2 commits into
sha256:masterfrom
natrayanp:master
Open

1) Avoid validate immediately after Reset. 2) Change to accept multiple classes for success and error (eg: tailwind CSS)#56
natrayanp wants to merge 2 commits into
sha256:masterfrom
natrayanp:master

Conversation

@natrayanp

Copy link
Copy Markdown

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

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.

1 participant