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

Function removeSelectedItems

packages/react-stately/src/data/useTreeData.ts:376–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374 setSelectedKeys(selection);
375 },
376 removeSelectedItems() {
377 this.remove(...selectedKeys);
378 },
379 move(key: Key, toParentKey: Key | null, index: number) {
380 setItems(({items, nodeMap: originalMap}) => {
381 let current = toParentKey;

Callers

nothing calls this directly

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected