dnbexperience / eufemia

DNB Design System
https://eufemia.dnb.no
Other
53 stars 32 forks source link

Form.clearData displays error messages in required fields after having cleared #4048

Closed langz closed 1 month ago

langz commented 1 month ago

🐛 Bug Report

Link to Slack thread:

https://dnb.enterprise.slack.com/archives/CMXABCHEY/p1727876488129109

Form.clearData when used with data, does render error messages for the required fields:

image

To Reproduce

https://codesandbox.io/p/sandbox/fervent-leaf-44xth5?workspaceId=9eb653cb-4406-4b8f-bc96-714927cc7fcd

fill in data, then press manually trigger cleardata

Expected behavior

It should not show error messages in the required fields, same as in the following examples:

tujoworker commented 1 month ago

:tada: This issue has been resolved in version 10.52.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: