()
| 176 | } |
| 177 | |
| 178 | componentWillUnmount() { |
| 179 | this.clearBackdropAnimationTimeout(); |
| 180 | |
| 181 | if (this.props.onExit) { |
| 182 | this.props.onExit(); |
| 183 | } |
| 184 | |
| 185 | if (this._element) { |
| 186 | this.destroy(); |
| 187 | if (this.props.isOpen || this.state.isOpen) { |
| 188 | this.close(); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | document.removeEventListener('focus', this.trapFocus, true); |
| 193 | this._isMounted = false; |
| 194 | } |
| 195 | |
| 196 | // not mouseUp because scrollbar fires it, shouldn't close when user scrolls |
| 197 | handleBackdropClick(e) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…