mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix radio input test in Chrome
It seems like the `form="pluto"` was throwing it off and making the input live outside the form it should have been contained in, causing it to uncheck A. I added it intending to test the form attribute but ended up not needing it so removing it should be fine. (The tests were passing in phantomjs since it doesn't support the `form` attribute and simply ignored it.) Test Plan: grunt test; grunt test --debug
This commit is contained in:
@@ -61,8 +61,7 @@ describe('ReactDOMInput', function() {
|
||||
<input ref="b" type="radio" name="fruit" />B
|
||||
|
||||
<form>
|
||||
<input ref="c" type="radio" name="fruit" form="pluto"
|
||||
defaultChecked={true} />
|
||||
<input ref="c" type="radio" name="fruit" defaultChecked={true} />
|
||||
</form>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user