From 85b6326c12418e46a2bf3a7b81e0544386d49b74 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Tue, 21 Apr 2020 01:32:52 +0200 Subject: [PATCH] Better move canceling when exiting board --- client/src/components/Board.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 4af64691..41398625 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -669,6 +669,8 @@ export default { delete this.selectedPiece; this.selectedPiece = null; this.start = null; + this.possibleMoves = []; //in case of + this.click = ""; let selected = document.querySelector(".ghost"); if (!!selected) selected.classList.remove("ghost"); } -- 2.44.0