MCPcopy Create free account
hub / github.com/Lobos/react-ui / focusNode

Function focusNode

docs/lib/react.js:18604–18611  ·  view source on GitHub ↗

* @param {DOMElement} node input/textarea to focus

(node)

Source from the content-addressed store, hash-verified

18602 */
18603
18604function focusNode(node) {
18605 // IE8 can throw "Can't move focus to the control because it is invisible,
18606 // not enabled, or of a type that does not accept the focus." for all kinds of
18607 // reasons that are too expensive and fragile to test.
18608 try {
18609 node.focus();
18610 } catch (e) {}
18611}
18612
18613module.exports = focusNode;
18614},{}],151:[function(_dereq_,module,exports){

Callers 1

react.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…