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: mark form dirty when object keys are deleted #4710

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

Conversation

evpaassen
Copy link

@evpaassen evpaassen commented Mar 22, 2024

πŸ”Ž Overview

This PR fixes an issue where removed keys of objects in field values don't mark the form as dirty, because the isEqual method is not commutative. Please refer to this comment for a demonstration of the issue: #4678 (comment).

I read that a changeset was desired when submitting a PR, but I'm unsure what to include. Please advise.

βœ” Issues affected

closes #4678

(Also credits to @SCBosch)

Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 89.90%. Comparing base (2a0881f) to head (b83365b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4710      +/-   ##
==========================================
+ Coverage   89.87%   89.90%   +0.02%     
==========================================
  Files          93       93              
  Lines        7676     7695      +19     
  Branches     1360     1367       +7     
==========================================
+ Hits         6899     6918      +19     
  Misses        770      770              
  Partials        7        7              

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@evpaassen evpaassen marked this pull request as ready for review March 22, 2024 14:47
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.

Form not marked as dirty if new value is empty object
1 participant