MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / handleBackdropClick

Function handleBackdropClick

src/Modal.js:197–217  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

195
196 // not mouseUp because scrollbar fires it, shouldn't close when user scrolls
197 handleBackdropClick(e) {
198 if (e.target === this._mouseDownElement) {
199 e.stopPropagation();
200
201 const backdrop = this._dialog ? this._dialog.parentNode : null;
202
203 if (
204 backdrop &&
205 e.target === backdrop &&
206 this.props.backdrop === 'static'
207 ) {
208 this.handleStaticBackdropAnimation();
209 }
210
211 if (!this.props.isOpen || this.props.backdrop !== true) return;
212
213 if (backdrop && e.target === backdrop && this.props.toggle) {
214 this.props.toggle(e);
215 }
216 }
217 }
218
219 handleTab(e) {
220 if (e.which !== 9) return;

Callers

nothing calls this directly

Calls 1

toggleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…