From 75ee0f632be4f4599bce55782d53131098078feb Mon Sep 17 00:00:00 2001 From: ZaneYork Date: Fri, 23 Oct 2020 14:02:45 +0800 Subject: [PATCH] Fix the bug of remove button --- src/components/VirtualKeyboard.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/VirtualKeyboard.vue b/src/components/VirtualKeyboard.vue index 839bb3f..4a2b4ed 100644 --- a/src/components/VirtualKeyboard.vue +++ b/src/components/VirtualKeyboard.vue @@ -446,8 +446,10 @@ } }); } - if (index >= 0) + if (index >= 0){ list.splice(index, 1); + this.currentButtonId = null; + } }, firstNotEmpty: function (alias, key) { return this.isEmpty(alias) ? key : alias;