MCPcopy Create free account
hub / github.com/flyfloor/react-component / removeVal

Function removeVal

component/CheckBoxGroup.js:46–54  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

44 },
45
46 removeVal(val){
47 let index = this.state.value.indexOf(val);
48 if (index > -1) {
49 this.state.value.splice(index, 1);
50 this.setState({
51 value: this.state.value
52 }, this.valueChange);
53 }
54 },
55
56 valueChange(){
57 const {onChange} = this.props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…