From 361667dcf8ba9d87b25ce0d12c1f586ea823bd10 Mon Sep 17 00:00:00 2001 From: Matheus Alves Date: Thu, 12 Jun 2025 12:14:04 +0100 Subject: [PATCH] Minor Sanitization for aesthetics Deleting the input when closing the overlay for aesthetics purpose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matheus Alves Co-authored-by: Inês Simões --- src/ui/rename-run-ui-handler.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/rename-run-ui-handler.ts b/src/ui/rename-run-ui-handler.ts index 0ba27f760be..0033079de63 100644 --- a/src/ui/rename-run-ui-handler.ts +++ b/src/ui/rename-run-ui-handler.ts @@ -35,6 +35,11 @@ export default class RenameRunFormUiHandler extends FormModalUiHandler { show(args: any[]): boolean { if (super.show(args)) { + if (this.inputs?.length) { + this.inputs.forEach(input => { + input.text = ""; + }); + } const config = args[0] as ModalConfig; this.submitAction = _ => { this.sanitizeInputs();