MCPcopy Index your code
hub / github.com/flyfloor/react-component / closeSubMenu

Function closeSubMenu

component/Menu.js:33–39  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

31 },
32
33 closeSubMenu(node){
34 const {popped, mode, horizontal} = this.props;
35 if (popped || mode === 'hover' || horizontal) {
36 let base = node || ReactDOM.findDOMNode(this.refs.base);
37 removeClass(base.querySelectorAll('.sub-menu._active'), '_active');
38 }
39 },
40
41 toggleSubMenu(index){
42 let {accordion, popped, horizontal} = this.props;

Callers

nothing calls this directly

Calls 1

removeClassFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…