revalidateField fails with rules added via addRequiredGroup
shawnheide opened this issue · comments
Thanks for your time and work on this project, it's been helpful in migrating from jQuery. When using revalidateField
, rules added with addRequiredGroup
fail since they aren't in this.fields
.
Line 805 in b1519dc
I thought about adding a validateGroup method, but clearFieldStyle
and renderFieldError
both rely on this.fields
too, so those would need a "groups" version as well. Does anyone have thoughts on a clean way to do this? My preference would be to use revalidateField
for both fields and groups.
Hey! Thanks! I think it's possible to add revalidateGroup
method (btw validateGroup
already exists).
We don't actually need to use clearFieldStyle
as we don't have styles for groups.
Also we already have renderGroupLabel
method.
So it should be easy to implement a new method, I will look into that today-tomorrow.
Added the revalidateGroup
method. Hope it helps.
Wow, thanks for the quick reply and implementation, I really appreciate it.