MCPcopy
hub / github.com/negomi/react-burger-menu / close

Function close

lib/menuFactory.js:202–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200 }
201
202 function close() {
203 if (typeof props.onClose === 'function') {
204 props.onClose();
205 } else {
206 toggleMenu();
207 }
208 }
209
210 function getStyle(style, index) {
211 var _props = props;

Callers 2

onKeyDownOpenFunction · 0.70
handleOverlayClickFunction · 0.70

Calls 1

toggleMenuFunction · 0.70

Tested by

no test coverage detected