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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clear applied $externalResults on $model change when rules recompute #1233

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

renatodeleao
Copy link

Summary

If you're using dynamic rules object via computed as documented, your client-side validations work dynamically as expected. If you add $externalResults to the mix and the rules rules are re-computed after $externalErrors been applied, $ externalErrors are no longer cleared when $model changes.

fixes #1232

Metadata

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

…les recompute

If you're using dynamic rules object via computed as documented, your client-side
validations work dynamically as expected. If you add $externalResults to the mix and
the rules rules are re-computed after $externalErrors been applied, $
externalErrors are no longer cleared when $model changes.

https://stackblitz.com/edit/vitejs-vite-j6ywfz?file=src%2FAppForm.vue
@renatodeleao renatodeleao changed the title fix: clear $externalResults on $model change after rules recompute fix: clear applied $externalResults on $model change when rules recompute Mar 12, 2024
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.

$externalResults are not automatically cleared on $model change when using dynamic/computed rules
1 participant