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

Method clearData

packages/react-aria/test/dnd/mocks.js:129–135  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

127 }
128
129 clearData(type) {
130 if (type) {
131 this.items._items = this.items._items.filter(item => item.type !== type);
132 } else {
133 this.items._items = [];
134 }
135 }
136}
137
138export class DragEvent extends MouseEvent {

Callers 1

onDragStartFunction · 0.80

Calls 1

filterMethod · 0.65

Tested by

no test coverage detected