From 676c68b6e7bbe5ce71e999941150761ec454007c Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Wed, 3 Jan 2024 16:52:26 +0100 Subject: [PATCH] Clear text field when closing receive text dialog --- public/scripts/ui.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/scripts/ui.js b/public/scripts/ui.js index 9cf0b3b..ffef7ee 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -2057,9 +2057,11 @@ class ReceiveTextDialog extends Dialog { } hide() { - // Todo: clear text field super.hide(); - setTimeout(() => this._dequeueRequests(), 500); + setTimeout(() => { + this._dequeueRequests(); + this.$text.innerHTML = ""; + }, 500); } }