event.target.selectedOptions IE Bug

https://github.com/facebook/react/issues/5791

by Travis Bloom

HTML

<div id="root"></div>

Babel + JSX

class Hello extends React.Component {
    constructor() {
    	super()
      this.state = {};
      this.getDomInfo = this.getDomInfo.bind(this)
    }
		
    getDomInfo(event) {
    	console.log('event', event)
    	console.log('event.target', event.target)
    	console.log('event.target.selectedOptions', event.target.selectedOptions)
    }
    
    render() {
    		const testData = [1, 2, 3];
        return (
          <select onChange={this.getDomInfo}>
						{testData.map((data) => <option key={data}>{data}</option>)}
          </select>
        );
    }
};
 
React.render(<Hello />, document.querySelector('#root'));