From e1e62573e790ecc13ace7413dade481d9e04ed2e Mon Sep 17 00:00:00 2001 From: stefanbabukov Date: Thu, 5 Oct 2023 17:18:27 +0100 Subject: [PATCH] fix Signed-off-by: stefanbabukov --- src/components/EditableField.jsx | 3 ++- src/components/plots/helpers/heatmap/vega/generateVegaData.js | 4 ++-- .../[experimentId]/plots-and-tables/marker-heatmap/index.jsx | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/EditableField.jsx b/src/components/EditableField.jsx index 73f4681a4a..e8c926da76 100644 --- a/src/components/EditableField.jsx +++ b/src/components/EditableField.jsx @@ -60,7 +60,6 @@ const EditableField = (props) => { const onChange = (e) => { const { value: newValueRaw } = e.target; - const newValue = formatter(newValueRaw); if (validationFunc) { @@ -103,7 +102,9 @@ const EditableField = (props) => { data-testid='editableFieldInput' autoFocus onChange={onChange} + onClick={(e) => e.stopPropagation()} size='small' + draggable defaultValue={editedValue} onKeyDown={onKeyDown} /> diff --git a/src/components/plots/helpers/heatmap/vega/generateVegaData.js b/src/components/plots/helpers/heatmap/vega/generateVegaData.js index 5030615f98..a30602000c 100644 --- a/src/components/plots/helpers/heatmap/vega/generateVegaData.js +++ b/src/components/plots/helpers/heatmap/vega/generateVegaData.js @@ -5,7 +5,7 @@ import { reversed } from 'utils/arrayUtils'; const generateVegaData = ( cellOrder, expressionMatrix, heatmapSettings, cellSets, ) => { - const { selectedGenes, selectedTracks, guardlines } = heatmapSettings; + const { selectedGenes, selectedTracks, guardLines } = heatmapSettings; const trackOrder = reversed(selectedTracks); const data = { @@ -26,7 +26,7 @@ const generateVegaData = ( cellOrder, rootNode, cellSets, - guardlines, + guardLines, ), ); diff --git a/src/pages/experiments/[experimentId]/plots-and-tables/marker-heatmap/index.jsx b/src/pages/experiments/[experimentId]/plots-and-tables/marker-heatmap/index.jsx index 2dec680192..e6b5f30988 100644 --- a/src/pages/experiments/[experimentId]/plots-and-tables/marker-heatmap/index.jsx +++ b/src/pages/experiments/[experimentId]/plots-and-tables/marker-heatmap/index.jsx @@ -239,7 +239,7 @@ const MarkerHeatmap = ({ experimentId }) => { } const data = generateVegaData(downsampledCellOrder, downsampledMatrix, config, cellSets); - const spec = generateSpec(config, 'Cluster ID', data, true); + const spec = generateSpec(config, 'Cluster ID', data, config.showGeneLabels); spec.description = 'Marker heatmap';