MCPcopy Create free account
hub / github.com/adobe/react-spectrum / setCursor

Function setCursor

packages/react-aria/src/tokenfield/useTokenField.ts:668–670  ·  view source on GitHub ↗
(root: Element, pos: Position, fireEvent = false)

Source from the content-addressed store, hash-verified

666let isProgrammaticSelectionChange = Symbol('isProgrammaticSelectionChange');
667
668function setCursor(root: Element, pos: Position, fireEvent = false) {
669 setTokenFieldSelection(root, pos, pos, fireEvent);
670}
671
672export function setTokenFieldSelection(
673 root: Element,

Callers 3

useTokenFieldFunction · 0.85
Table.tsxFile · 0.85
loadFunction · 0.85

Calls 1

setTokenFieldSelectionFunction · 0.85

Tested by

no test coverage detected