From 5b45b9a53b12dfe43b1b46fbafa63d5cddaecae1 Mon Sep 17 00:00:00 2001 From: Dingedi <64697405+dingedi@users.noreply.github.com> Date: Sun, 3 Apr 2022 18:08:10 +0200 Subject: [PATCH] Focus textarea after delete text --- app/static/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/static/js/app.js b/app/static/js/app.js index f33aca8..f81cdb2 100644 --- a/app/static/js/app.js +++ b/app/static/js/app.js @@ -352,6 +352,7 @@ document.addEventListener('DOMContentLoaded', function(){ deleteText: function(e){ e.preventDefault(); this.inputText = this.translatedText = this.output = ""; + this.$refs.inputTextarea.focus(); }, switchType: function(type) { this.translationType = type;