MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / componentWillUnmount

Function componentWillUnmount

src/Modal.js:178–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

onExitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…