From e4ca0482b8a8f097930f858e81b9b8a902f21cdf Mon Sep 17 00:00:00 2001 From: DD Date: Thu, 25 Jan 2018 18:32:43 -0500 Subject: [PATCH] Don't enable if there is nothing in the editor --- src/components/mode-tools/mode-tools.jsx | 3 +++ src/containers/mode-tools.jsx | 8 +++++++- src/helper/selection.js | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/mode-tools/mode-tools.jsx b/src/components/mode-tools/mode-tools.jsx index e2b9b3ec..2cde3d3c 100644 --- a/src/components/mode-tools/mode-tools.jsx +++ b/src/components/mode-tools/mode-tools.jsx @@ -151,11 +151,13 @@ const ModeToolsComponent = props => { 0; } + hasItems () { + return getAllSelectableRootItems().length > 0; + } handleCurvePoints () { let changed; const points = this._getSelectedUncurvedPoints(); @@ -203,6 +208,7 @@ class ModeTools extends React.Component { render () { return (