From bdbcfbc8fc37bb044fb47477b92eb63717d95f1b Mon Sep 17 00:00:00 2001 From: Phillip Kelley-Dotson Date: Fri, 8 Oct 2021 10:54:16 -0700 Subject: [PATCH] fix: show onhover menu only in edit mode (#17034) * fix on markdown hover menu * lint-fix --- .../dashboard/components/gridComponents/Markdown.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx b/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx index 6f64978db..dcc855449 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx +++ b/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx @@ -350,11 +350,13 @@ class Markdown extends React.PureComponent { className="dashboard-component dashboard-component-chart-holder" data-test="dashboard-component-chart-holder" > - - - + {editMode && ( + + + + )} {editMode && isEditing ? this.renderEditMode() : this.renderPreviewMode()}