Skip to content

Conversation

@xJuvi
Copy link

@xJuvi xJuvi commented Mar 19, 2023

No description provided.

xJuvi added 2 commits March 19, 2023 12:59
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
@xJuvi
Copy link
Author

xJuvi commented Dec 4, 2025

Hey @AliN11
the field is registred in the Events type. I added a missing configuration to the type set. Now everything should work.
After this PR i used a local fork of this library. But now i want to switch to this official maintained repo as source.

Feel free to ask if anything in my changes is unclear.

Kind regards

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.

2 participants