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 Sep 16, 2024
1 parent 0dce9aa commit 568f013
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ 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 allows passing a `value` parameter, which is used to populate the `value` HTML attribute of the input.

No modern browser supports passing a `value` to a file input, so we've decided to deprecate this parameter. It will be removed in a future version of GOV.UK Frontend.

### 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 568f013

Please sign in to comment.