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

Function setFocus

src/Modal.js:295–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293 }
294
295 setFocus() {
296 if (
297 this._dialog &&
298 this._dialog.parentNode &&
299 typeof this._dialog.parentNode.focus === 'function'
300 ) {
301 this._dialog.parentNode.focus();
302 }
303 }
304
305 getFocusableChildren() {
306 return this._element.querySelectorAll(focusableElements.join(', '));

Callers 1

ButtonToggleFunction · 0.70

Calls 1

focusMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…