Skip to content

Commit

Permalink
Merge pull request #5330 from alphagov/file-upload-deprecate-value-param
Browse files Browse the repository at this point in the history
Deprecate File upload component's `value` parameter
  • Loading branch information
querkmachine authored Oct 11, 2024
2 parents 4e1ccea + 8a95be4 commit 782fba5
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).

### Fixes

We've made fixes to GOV.UK Frontend in the following pull requests:
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 782fba5

Please sign in to comment.