Skip to content

Commit

Permalink
[media] React Warning on Upload Tab (#8721)
Browse files Browse the repository at this point in the history
Modified Form.js to no longer use the "selected" attribute in option tags, and rather the "value" attribute of select tags.

Resolves #8702
  • Loading branch information
skarya22 committed Oct 17, 2023
1 parent 56a636b commit 91ceee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsx/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ class SelectElement extends Component {
}

if (this.props.placeholder !== '') {
optionList.unshift(<option value={''} selected={true}>
optionList.unshift(<option value={''}>
{this.props.placeholder}
</option>);
}
Expand Down

0 comments on commit 91ceee1

Please sign in to comment.