Skip to content

Commit

Permalink
Table: fix #707
Browse files Browse the repository at this point in the history
  • Loading branch information
sam019 committed Mar 21, 2018
1 parent 14caaf2 commit af05297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/table/FilterPannel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class FilterPannel extends Component<FilterProps, FilterState> {
}

componentWillUnmount() {
this.poperIns.destroy();
this.poperIns && this.poperIns.destroy();
ReactDOM.unmountComponentAtNode(this.container);
document.removeEventListener('click', this.handleClickOutside);
document.body.removeChild(this.container);
Expand Down Expand Up @@ -78,7 +78,7 @@ export default class FilterPannel extends Component<FilterProps, FilterState> {
}

renderPortal(element, container) {
ReactDOM.unstable_renderSubtreeIntoContainer(this, element, container);
ReactDOM.render(element, container);
}

renderContent() {
Expand Down

0 comments on commit af05297

Please sign in to comment.