diff --git a/src/ContextualMenu.js b/src/ContextualMenu.js index 65d3e98910..695b8445ab 100644 --- a/src/ContextualMenu.js +++ b/src/ContextualMenu.js @@ -45,7 +45,9 @@ module.exports = { var closeMenu = function() { ReactDOM.unmountComponentAtNode(self.getOrCreateContainer()); - if (props && props.onFinished) props.onFinished.apply(null, arguments); + if (props && props.onFinished) { + props.onFinished.apply(null, arguments); + } }; var position = { @@ -54,10 +56,10 @@ module.exports = { var chevron = null; if (props.left) { - chevron =
+ chevron =
position.left = props.left + 8; } else { - chevron =
+ chevron =
position.right = props.right + 8; }