From: Benjamin Auder Date: Mon, 20 Apr 2020 23:32:52 +0000 (+0200) Subject: Better move canceling when exiting board X-Git-Url: https://git.auder.net/js/doc/%7B%7B%20path%28%27fos_user_profile_show%27%29%20%7D%7D?a=commitdiff_plain;h=85b6326c12418e46a2bf3a7b81e0544386d49b74;p=vchess.git Better move canceling when exiting board --- 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"); }