React: Radio input bug
https://github.com/facebook/react/issues/10078
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.js"></script>
<script src="https://npmcdn.com/react@latest/dist/react-with-addons.js"></script>
<script src="https://npmcdn.com/react-dom@latest/dist/react-dom.js"></script>
<script src="https://facebook.github.io/react/js/jsfiddle-integration-babel.js"></script>
<div id="container"></div>
JavaScript 1.7
var Test = React.createClass({
render: function() {
return (
<div>
<input type="radio" name="some" onChange={e => console.log(1)} /> 1
<input type="radio" name="some" onChange={e => console.log(2)} /> 2
<input type="radio" name="some" onChange={e => console.log(3)} /> 3
</div>
);
},
});
ReactDOM.render(
<Test />,
document.getElementById('container')
);