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
In 2.0.0 alpha, I aim to use omitExtraData and liveOmit to ensure that any "extra" fields that are not supposed to be included in my formData gets cleaned out.
This works as expected, except for errors related to additionalProperties: false settings. When this is enabled, the loading of formData with additional properties results in an editor error. This disappears on any change to the form and does not block the user from submitting.
The expected behavior would be for this scenario to result in no errors and that the liveOmit would immediately clear the additionalProperties induced error without the need for the user to update any fields.
In 1.8.0 I believe I had some other issues with the data omitting, so I’m not sure. The functionality works great in 2.0.0 so I think this may just be an edge case due to the additionalProperties induced error
Prerequisites
Description
In 2.0.0 alpha, I aim to use
omitExtraData
andliveOmit
to ensure that any "extra" fields that are not supposed to be included in my formData gets cleaned out.This works as expected, except for errors related to
additionalProperties: false
settings. When this is enabled, the loading of formData with additional properties results in an editor error. This disappears on any change to the form and does not block the user from submitting.The expected behavior would be for this scenario to result in no errors and that the liveOmit would immediately clear the additionalProperties induced error without the need for the user to update any fields.
Steps to Reproduce
See below playground link:
playground example
While not critical, this would be great to get resolved if it is indeed unintended.
Best,
Martin
The text was updated successfully, but these errors were encountered: