Skip to content

Fix issue where updating <option> children of <select> element doesn't trigger getting selected attribute properly set.#2289

Closed
stephenjudkins wants to merge 1 commit into
react:masterfrom
stephenjudkins:fix-select-bug
Closed

Fix issue where updating <option> children of <select> element doesn't trigger getting selected attribute properly set.#2289
stephenjudkins wants to merge 1 commit into
react:masterfrom
stephenjudkins:fix-select-bug

Conversation

@stephenjudkins

Copy link
Copy Markdown

Includes (previously failing) test.

…t trigger getting `selected` attribute properly set.

Includes (previously failing) test.
@facebook-github-bot

Copy link
Copy Markdown
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@syranide

syranide commented Oct 3, 2014

Copy link
Copy Markdown
Contributor

#2241 should solve this case as well.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@stephenjudkins

Copy link
Copy Markdown
Author

Yours is a much nicer fix, since the guts of select seemed pretty awful to me. I'll leave this open in case you want to poach the test case I added, which might remain useful .

@syranide

syranide commented Oct 3, 2014

Copy link
Copy Markdown
Contributor

@stephenjudkins Definitely, more tests are better :)

Yep, let's keep this open for now until that PR is approved, just in-case .

@syranide

syranide commented Nov 3, 2014

Copy link
Copy Markdown
Contributor

@stephenjudkins My other PR is accepted so I poached your test-case as we agreed, sorry we couldn't take this PR but thanks for contributing anyway! :)

@syranide syranide closed this Nov 3, 2014
@stephenjudkins

Copy link
Copy Markdown
Author

No, thank you for providing a more thorough and robust fix to the problem. I suspect there may have been more bugs hidden in the edge cases with the previous approach anyways.

@syranide

syranide commented Nov 3, 2014

Copy link
Copy Markdown
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants