Skip to content

add dirtyFields type#158

Merged
erikras merged 1 commit into
final-form:masterfrom
simstefani:fix/addDirtyFieldsType
Sep 17, 2018
Merged

add dirtyFields type#158
erikras merged 1 commit into
final-form:masterfrom
simstefani:fix/addDirtyFieldsType

Conversation

@simstefani

@simstefani simstefani commented Sep 6, 2018

Copy link
Copy Markdown
Contributor

Hi,

Related to : #157

Just adding missing types for dirtyFields in FormState and FormSubscription

@codecov

codecov Bot commented Sep 6, 2018

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@edc8816). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             master   #158   +/-   ##
=======================================
  Coverage          ?   100%           
=======================================
  Files             ?     12           
  Lines             ?    505           
  Branches          ?    103           
=======================================
  Hits              ?    505           
  Misses            ?      0           
  Partials          ?      0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update edc8816...0a692e9. Read the comment docs.

@erikras
erikras merged commit fbbfd73 into final-form:master Sep 17, 2018
@lock

lock Bot commented Oct 17, 2018

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Oct 17, 2018
@erikras

erikras commented Nov 15, 2018

Copy link
Copy Markdown
Member

Published in v4.11.0.

erikras-dinesh-agent pushed a commit that referenced this pull request Feb 16, 2026
- Add null check in getValidators to prevent crash when field is undefined
- This fixes react-final-form-arrays #158 where removing array items
  causes validation to access validators on deleted field objects
- Add test that reproduces the crash and verifies the fix
erikras-dinesh-agent pushed a commit that referenced this pull request Feb 16, 2026
- Add null check in getValidators to prevent crash when field is undefined
- This fixes react-final-form-arrays #158 where removing array items
  causes validation to access validators on deleted field objects
- Add test that reproduces the crash and verifies the fix
erikras-dinesh-agent pushed a commit that referenced this pull request Feb 16, 2026
- Add null check in getValidators to prevent crash when field is undefined
- This fixes react-final-form-arrays #158 where removing array items
  causes validation to access validators on deleted field objects
- Add test that reproduces the crash and verifies the fix
erikras-dinesh-agent pushed a commit that referenced this pull request Feb 16, 2026
- Add null check in getValidators to prevent crash when field is undefined
- This fixes react-final-form-arrays #158 where removing array items
  causes validation to access validators on deleted field objects
- Add test that reproduces the crash and verifies the fix
erikras-dinesh-agent pushed a commit that referenced this pull request Feb 16, 2026
- Add null check in getValidators to prevent crash when field is undefined
- This fixes react-final-form-arrays #158 where removing array items
  causes validation to access validators on deleted field objects
- Add test that reproduces the crash and verifies the fix
erikras pushed a commit that referenced this pull request Feb 16, 2026
* Fix #158: Guard against undefined field in getValidators

- Add null check in getValidators to prevent crash when field is undefined
- This fixes react-final-form-arrays #158 where removing array items
  causes validation to access validators on deleted field objects
- Add test that reproduces the crash and verifies the fix

* Increase CJS bundle size limit for safety guard

The guard check in getValidators() adds 14-30 bytes to prevent crashes
when accessing validators on undefined fields. Small size increase is
acceptable for critical bug fix.

---------

Co-authored-by: erikras-dinesh-agent <[email protected]>
@erikras-richard-agent

Copy link
Copy Markdown
Contributor

Fix published in v5.0.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants