()
| 146 | } |
| 147 | |
| 148 | componentWillUnmount() { |
| 149 | this.clearBackdropAnimationTimeout(); |
| 150 | |
| 151 | if (this.props.onExit) { |
| 152 | this.props.onExit(); |
| 153 | } |
| 154 | |
| 155 | if (this._element) { |
| 156 | this.destroy(); |
| 157 | if (this.props.isOpen || this.state.isOpen) { |
| 158 | this.close(); |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | document.removeEventListener('focus', this.trapFocus, true); |
| 163 | this._isMounted = false; |
| 164 | } |
| 165 | |
| 166 | // not mouseUp because scrollbar fires it, shouldn't close when user scrolls |
| 167 | handleBackdropClick(e) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…