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

Function setFocus

src/Offcanvas.js:243–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 }
242
243 setFocus() {
244 if (
245 this._dialog.current &&
246 typeof this._dialog.current.focus === 'function'
247 ) {
248 this._dialog.current.focus();
249 }
250 }
251
252 getFocusableChildren() {
253 return this._element.querySelectorAll(focusableElements.join(', '));

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…