Skip to content

Commit

Permalink
delay removes the input after change updates the element
Browse files Browse the repository at this point in the history
  • Loading branch information
yz-xlame committed Jan 25, 2024
1 parent 83e35ba commit 09899f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hide/Ide.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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?")) {
Expand Down

0 comments on commit 09899f6

Please sign in to comment.