MCPcopy Create free account
hub / github.com/caseywebdev/react-list / hasSelectionCapabilities

Function hasSelectionCapabilities

docs/index.js:5652–5665  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

5650 return element;
5651}
5652function hasSelectionCapabilities(elem) {
5653 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
5654 return (
5655 nodeName &&
5656 (("input" === nodeName &&
5657 ("text" === elem.type ||
5658 "search" === elem.type ||
5659 "tel" === elem.type ||
5660 "url" === elem.type ||
5661 "password" === elem.type)) ||
5662 "textarea" === nodeName ||
5663 "true" === elem.contentEditable)
5664 );
5665}
5666function restoreSelection(priorSelectionInformation, containerInfo) {
5667 var curFocusedElem = getActiveElementDeep(containerInfo);
5668 containerInfo = priorSelectionInformation.focusedElem;

Callers 3

restoreSelectionFunction · 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…