MCPcopy Create free account
hub / github.com/react-dnd/react-dnd / canDrag

Method canDrag

packages/react-dnd/src/createSourceFactory.js:55–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 canDrag() {
56 if (!spec.canDrag) {
57 return true;
58 }
59
60 return spec.canDrag(this.props, this.monitor);
61 }
62
63 isDragging(globalMonitor, sourceId) {
64 if (!spec.isDragging) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected