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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add field success option to events #314

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

Conversation

xJuvi
Copy link

@xJuvi xJuvi commented Mar 19, 2023

No description provided.

This event was fired when validation of a field was successful. So it's possible to format the field on with custom class. Maybe later there are some more options like default success class or new options to set custom classes.
@AliN11
Copy link
Collaborator

AliN11 commented Nov 28, 2023

This is a great suggestion though. But the PR is not complete yet and missing some requirements. You should consider registering the event in the Events type. Otherwise you'll get:

Argument of type '"field:success"' is not assignable to parameter of type 'keyof Events'

@AliN11 AliN11 closed this Nov 28, 2023
@AliN11 AliN11 reopened this Nov 28, 2023
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

2 participants