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

Function componentWillUnmount

src/Offcanvas.js:148–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

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…