Skip to content

Commit

Permalink
Mark file upload ‘value’ parameter as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
querkmachine committed Oct 10, 2024
1 parent 6805620 commit 869a8b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

## v5.7.0 (Feature release)

To install this version with npm, run `npm install govuk-frontend@5.7.0`. You can also find more information about [how to stay up to date](https://frontend.design-system.service.gov.uk/staying-up-to-date/#updating-to-the-latest-version) in our documentation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 869a8b0

Please sign in to comment.