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

Function FallbackCompositionState

docs/lib/react.js:3172–3176  ·  view source on GitHub ↗

* This helper class stores information about text content of a target node, * allowing comparison of content before and after a given event. * * Identify the node where selection currently begins, then observe * both its text content and its current position in the DOM. Since the * browser may

(root)

Source from the content-addressed store, hash-verified

3170 * @param {DOMEventTarget} root
3171 */
3172function FallbackCompositionState(root) {
3173 this._root = root;
3174 this._startText = this.getText();
3175 this._fallbackText = null;
3176}
3177
3178_assign(FallbackCompositionState.prototype, {
3179 destructor: function () {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…