Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

value in select element not works. #37

Closed
unbug opened this issue May 27, 2015 · 2 comments
Closed

value in select element not works. #37

unbug opened this issue May 27, 2015 · 2 comments

Comments

@unbug
Copy link

unbug commented May 27, 2015

According to why-select-value.

<div className="form-group">
                <label htmlFor="role">Role</label>
                <select className="form-control" id="role" name="role" value="Editor">
                  <option value="Register">Register</option>
                  <option value="Editor">Editor</option>
                  <option value="Administrator">Administrator</option>
                </select>
              </div>

But the second option not got selected.

@sophiebits
Copy link
Member

This is a React bug that is fixed in master and will be in the 0.14 release.

@unbug
Copy link
Author

unbug commented May 27, 2015

coooool

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants