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

Function setCursor

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

Source from the content-addressed store, hash-verified

706let isProgrammaticSelectionChange = Symbol('isProgrammaticSelectionChange');
707
708function setCursor(root: Element, pos: Position, fireEvent = false) {
709 setTokenFieldSelection(root, new TokenFieldValue.SelectedRange(pos), fireEvent);
710}
711
712export function setTokenFieldSelection(
713 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