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

Function handleBackdropClick

src/Offcanvas.js:167–178  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

165
166 // not mouseUp because scrollbar fires it, shouldn't close when user scrolls
167 handleBackdropClick(e) {
168 if (e.target === this._mouseDownElement) {
169 e.stopPropagation();
170 const backdrop = this._backdrop.current;
171
172 if (!this.props.isOpen || this.props.backdrop !== true) return;
173
174 if (backdrop && e.target === backdrop && this.props.toggle) {
175 this.props.toggle(e);
176 }
177 }
178 }
179
180 handleTab(e) {
181 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…