From 09899f689ecfee709b31730bbb453f488d2ea7cd Mon Sep 17 00:00:00 2001 From: goya Date: Thu, 25 Jan 2024 20:14:38 +0800 Subject: [PATCH] delay removes the input after change updates the element --- hide/Ide.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hide/Ide.hx b/hide/Ide.hx index 14fdb5f4e..9a81d31d5 100644 --- a/hide/Ide.hx +++ b/hide/Ide.hx @@ -182,7 +182,7 @@ class Ide { var body = window.window.document.body; window.on("focus", function() { // handle cancel on type=file - haxe.Timer.delay(function() new Element(body).find("input[type=file]").change().remove(), 200); + haxe.Timer.delay(function() new Element(body).find("input[type=file]").change().remove(), 300); if(fileExists(databaseFile) && getFileText(databaseFile) != lastDBContent) { if(js.Browser.window.confirm(databaseFile + " has changed outside of Hide. Do you want to reload?")) {