MCPcopy Index your code
hub / github.com/caseywebdev/react-list / getActiveElement

Function getActiveElement

docs/index.js:4550–4558  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

4548 return node !== lastValue ? (tracker.setValue(node), !0) : !1;
4549}
4550function getActiveElement(doc) {
4551 doc = doc || ("undefined" !== typeof document ? document : void 0);
4552 if ("undefined" === typeof doc) return null;
4553 try {
4554 return doc.activeElement || doc.body;
4555 } catch (e) {
4556 return doc.body;
4557 }
4558}
4559var escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g;
4560function escapeSelectorAttributeValueInsideDoubleQuotes(value) {
4561 return value.replace(

Callers 3

setDefaultValueFunction · 0.85
getActiveElementDeepFunction · 0.85
constructSelectEventFunction · 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…