Closed DuckMingBrother closed 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?
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 }); } } };
@DuckMingBrother I will take a look at this soon
@DuckMingBrother This may correct the issue. Please let me know https://github.com/alsoscotland/react-super-select/tree/v0.5.11
@DuckMingBrother Any news on whether this solved your problem?
we tried babel-polyfill, the babel can't fix this issue too. can you fix this?