alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

In IE9, Object.setPrototypeOf is not support #89

Closed DuckMingBrother closed 7 years ago

DuckMingBrother commented 7 years ago

we tried babel-polyfill, the babel can't fix this issue too. can you fix this?

alsoscotland commented 7 years ago

@DuckMingBrother @kensomanpow https://github.com/alsoscotland/react-super-select/tree/v0.5.10 may fix the issue. Could you please give it a try?

DuckMingBrother commented 7 years ago

I tried 0.5.10, it's fix the problem.

but we meet other problem,

ReactSuperSelect.prototype.componentWillUnmount = function componentWillUnmount() { document.removeEventListener('click', this._handleDocumentClick); document.removeEventListener('touchstart', this._handleDocumentClick); };

in IE10, 11, above event listener not remove after componentWillUnmount, and error is this._rssDOM.rssControl is undefined, the code happened error in the below code...can you fix this~~~thank you.

ReactSuperSelect.prototype._handleDocumentClick = function _handleDocumentClick() { var event = Array.prototype.slice.call(arguments)[0], isTargetStillInDOM = document.body.contains(event.target); if (isTargetStillInDOM && !this._rssDOM.rssControl.contains(event.target)) { if (this.state.isOpen) { this.setState({ isOpen: false, focusedId: undefined }); } } };

alsoscotland commented 7 years ago

@DuckMingBrother I will take a look at this soon

alsoscotland commented 7 years ago

@DuckMingBrother This may correct the issue. Please let me know https://github.com/alsoscotland/react-super-select/tree/v0.5.11

alsoscotland commented 7 years ago

@DuckMingBrother Any news on whether this solved your problem?