-
I have a generic component which internally uses Controller. Its appears rules once passed are cached and stays with controller. Is there a way to Unregister or Override Validate ? I tried to add a condition where in if field is disabled we will return new validate with required function to return true (hope return true means there will be no error displayed for that field ). But this validate who return true never gets called i tried returning false as well it seems initial required gets called always when controller was registered at the first time. Thanks in advance. :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
This is fixed on v6 (coming) :) for workaround checkout this issue: #1749 |
Beta Was this translation helpful? Give feedback.
-
@bluebill1049 created a sample code scenario for the same. Do you mind helping me determine how to unregister controlled field. |
Beta Was this translation helpful? Give feedback.
-
@bluebill1049 Never mind i figured out the way updated my code to use |
Beta Was this translation helpful? Give feedback.
@bluebill1049 Never mind i figured out the way updated my code to use
const key =
${ind}-${+(disabled || false)}
and passed it to controller. Thanks for above link