Closed
Bug 1334147
Opened 9 years ago
Closed 9 years ago
autoland-ui: Fix <select>/<option> "selected" React Error
Categories
(Conduit :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: davidwalsh, Assigned: davidwalsh)
Details
Attachments
(1 file)
React currently throwing the following error:
Warning: Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>
Easy fix.
| Comment hidden (mozreview-request) |
Comment 2•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8830751 [details]
autoland-ui: Fix React warning from the fixture chooser (Bug 1334147).
https://reviewboard.mozilla.org/r/107480/#review108634
Whoops forgot to fix that myself. Thanks!
Attachment #8830751 -
Flags: review?(imadueme) → review+
Comment 3•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8830751 [details]
autoland-ui: Fix React warning from the fixture chooser (Bug 1334147).
https://reviewboard.mozilla.org/r/107480/#review108640
::: autoland/ui/src/components/App.jsx:13
(Diff revision 1)
> render() {
> return (
> <div>
> <header>
> <h1>Mozilla Autoland</h1>
> <select onChange={this.changeDemoPage.bind(this)}>
Let's add `defaultValue=""` on the select here instead.
::: autoland/ui/src/components/App.jsx:14
(Diff revision 1)
> return (
> <div>
> <header>
> <h1>Mozilla Autoland</h1>
> <select onChange={this.changeDemoPage.bind(this)}>
> - <option value="" disabled selected>Change Demo Page</option>
> + <option value="" disabled defaultValue>Change Demo Page</option>
Now that I actually test out the change, this doesn't work. Let's remove `defaultValue` from here.
Attachment #8830751 -
Flags: review+ → review-
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 6•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8830751 [details]
autoland-ui: Fix React warning from the fixture chooser (Bug 1334147).
https://reviewboard.mozilla.org/r/107480/#review108660
Noice!
Attachment #8830751 -
Flags: review?(imadueme) → review+
Comment 7•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8830751 [details]
autoland-ui: Fix React warning from the fixture chooser (Bug 1334147).
https://reviewboard.mozilla.org/r/107480/#review108958
Attachment #8830751 -
Flags: review?(smacleod) → review+
| Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Assignee: nobody → dwalsh
You need to log in
before you can comment on or make changes to this bug.
Description
•