MCPcopy Index your code
hub / github.com/nadbm/react-datasheet / handleCut

Function handleCut

src/DataSheet.js:125–132  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

123 }
124
125 handleCut (e) {
126 if (isEmpty(this.state.editing)) {
127 e.preventDefault()
128 this.handleCopy(e)
129 const {start, end} = this.getState()
130 this.clearSelectedCells(start, end)
131 }
132 }
133
134 handleCopy (e) {
135 if (isEmpty(this.state.editing)) {

Callers

nothing calls this directly

Calls 1

isEmptyFunction · 0.70

Tested by

no test coverage detected