You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using helpers.forEach you lose reactivity and the rule will stay as whatever it was at the beginning rather than updating when a computed ruleset works. Using a computed as shown here does not work with helpers.ForEach.
The left side uses a computed with helpers.ForEach and the right side uses the same computed without the forEach to work on just one field. You'll notice that the number input controls the minlength required for both sides in the computed, however only v2$ is updating with the new rules despite the reactive dependencies for both rules1 and rules2 changing. In the silent errors you'll see if you change the min length of names to 6 only the right side updates to reflect that while the left side(the one using helpers.forEach) stays at the default 4.
Expected behavior
I would expect the minLength required rule to be used on the array side when the minLength changes as well however with the helpers.forEach it doesn't seem to be changing with a computed rule.
The text was updated successfully, but these errors were encountered:
I don't want to use child components, as those are typically element forms, and are not available once the edition mode has been exited.
To be more precise: I have another step in my form which own the certAuth you're seeing here. Once this information has been updated, I need to validate sub elements based on this certAuth, which is the reason I won't jump into the documentation proposal using child components.
Describe the bug
When using helpers.forEach you lose reactivity and the rule will stay as whatever it was at the beginning rather than updating when a computed ruleset works. Using a computed as shown here does not work with helpers.ForEach.
Reproduction URL
https://codesandbox.io/s/strange-monad-84qhwv?file=/src/App.vue:974-994
The left side uses a computed with helpers.ForEach and the right side uses the same computed without the forEach to work on just one field. You'll notice that the number input controls the minlength required for both sides in the computed, however only v2$ is updating with the new rules despite the reactive dependencies for both rules1 and rules2 changing. In the silent errors you'll see if you change the min length of names to 6 only the right side updates to reflect that while the left side(the one using helpers.forEach) stays at the default 4.
Expected behavior
I would expect the minLength required rule to be used on the array side when the minLength changes as well however with the helpers.forEach it doesn't seem to be changing with a computed rule.
The text was updated successfully, but these errors were encountered: