MCPcopy Create free account
hub / github.com/plotly/dash / getSelectionInformation

Function getSelectionInformation

dash/deps/react-dom@18.2.0.js:8485–8491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8483 return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
8484 }
8485 function getSelectionInformation() {
8486 var focusedElem = getActiveElementDeep();
8487 return {
8488 focusedElem: focusedElem,
8489 selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null
8490 };
8491 }
8492 /**
8493 * @restoreSelection: If any selection information was potentially lost,
8494 * restore it. This is useful when performing operations that could remove dom

Callers 1

prepareForCommitFunction · 0.70

Calls 3

getActiveElementDeepFunction · 0.70
hasSelectionCapabilitiesFunction · 0.70
getSelectionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…