From c5d41d504f3b88957a8a898921e2da8b447544da Mon Sep 17 00:00:00 2001 From: Kevin F Date: Thu, 1 Feb 2024 15:42:15 +0100 Subject: [PATCH] Fix cell select not removed when switching active view :bug:#349 --- src/Client/Update/SpreadsheetUpdate.fs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Client/Update/SpreadsheetUpdate.fs b/src/Client/Update/SpreadsheetUpdate.fs index e81fb52c..ad34b490 100644 --- a/src/Client/Update/SpreadsheetUpdate.fs +++ b/src/Client/Update/SpreadsheetUpdate.fs @@ -103,7 +103,11 @@ module Spreadsheet = {state with ArcFile = state.ArcFile} nextState, model, Cmd.none | UpdateActiveView nextView -> - let nextState = { state with ActiveView = nextView } + let nextState = { + state with + ActiveView = nextView + SelectedCells = Set.empty + } nextState, model, Cmd.none | RemoveTable removeIndex -> let nextState = Controller.removeTable removeIndex state