MCPcopy Create free account
hub / github.com/Lobos/react-ui / check

Method check

src/Tree/Item.js:40–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 check () {
41 if (this.props.readOnly) {
42 return;
43 }
44
45 let status = this.state.status;
46 status = status < 2 ? 2 : 0;
47 this.setStatus(status);
48
49 // setTimeout wait state changed
50 setTimeout(() => {
51 this.props.onStatusChange();
52 }, 0);
53 }
54
55 setStatus (status) {
56 this.setState({ status });

Callers

nothing calls this directly

Calls 1

setStatusMethod · 0.95

Tested by

no test coverage detected