MCPcopy Create free account
hub / github.com/ElemeFE/element-react / handleClick

Method handleClick

src/tree/Node.jsx:131–139  ·  view source on GitHub ↗
(evt: ?SyntheticEvent<any>)

Source from the content-addressed store, hash-verified

129
130
131 handleClick(evt: ?SyntheticEvent<any>): void {
132 if (evt) evt.stopPropagation();
133 const { nodeModel, treeNode } = this.props;
134
135 treeNode.setCurrentNode(this);
136 if (treeNode.props.expandOnClickNode){
137 this.handleExpandIconClick()
138 }
139 }
140
141 handleExpandIconClick(evt: ?SyntheticEvent<any>): void {
142 if (evt) evt.stopPropagation();

Callers

nothing calls this directly

Calls 2

handleExpandIconClickMethod · 0.95
setCurrentNodeMethod · 0.45

Tested by

no test coverage detected