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

Function manageFocusAfterClose

src/Modal.js:401–408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399 }
400
401 manageFocusAfterClose() {
402 if (this._triggeringElement) {
403 const { returnFocusAfterClose } = this.props;
404 if (this._triggeringElement.focus && returnFocusAfterClose)
405 this._triggeringElement.focus();
406 this._triggeringElement = null;
407 }
408 }
409
410 close() {
411 if (Modal.openCount <= 1) {

Callers

nothing calls this directly

Calls 1

focusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…