diff --git a/CHANGELOG.md b/CHANGELOG.md index 9461ccda5b..c8131cd7ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ For advice on how to use these release notes see [our guidance on staying up to ## Unreleased +### Recommended changes + +#### Stop setting a `value` for File upload components + +The File upload component currently supports a `value` parameter, which populates the `value` HTML attribute of the input. + +However, since no modern browser supports passing a `value` to a file input, we've made the decision to remove this parameter. It has been deprecated and will be removed in a future version of GOV.UK Frontend. + +We introduced this change in [pull request #5330: Deprecate File upload component's `value` parameter](https://github.com/alphagov/govuk-frontend/pull/5330). + ### Fixes We've made fixes to GOV.UK Frontend in the following pull requests: diff --git a/packages/govuk-frontend/src/govuk/components/file-upload/file-upload.yaml b/packages/govuk-frontend/src/govuk/components/file-upload/file-upload.yaml index 6506fde6eb..fde79e6588 100644 --- a/packages/govuk-frontend/src/govuk/components/file-upload/file-upload.yaml +++ b/packages/govuk-frontend/src/govuk/components/file-upload/file-upload.yaml @@ -10,7 +10,7 @@ params: - name: value type: string required: false - description: Optional initial value of the input. + description: Deprecated. Optional initial value of the input. - name: disabled type: boolean required: false