[GH-ISSUE #51] popup to close comes first en then the savedialog #43

Closed
opened 2026-03-23 20:31:26 +00:00 by mirror · 5 comments
Owner

Originally created by @pjlammertyn on GitHub (May 25, 2023).
Original GitHub issue: https://github.com/RADar-AZDelta/Keun/issues/51

Originally created by @pjlammertyn on GitHub (May 25, 2023). Original GitHub issue: https://github.com/RADar-AZDelta/Keun/issues/51
Author
Owner

@BostoenToby commented on GitHub (May 25, 2023):

image
Not sure if it is possible to invoke the showSaveFilePicker first and then the pop-up

<!-- gh-comment-id:1562498268 --> @BostoenToby commented on GitHub (May 25, 2023): ![image](https://github.com/RADar-AZDelta/Keun/assets/71939691/64ab976f-0d7d-4748-80e6-df3ca767094e) Not sure if it is possible to invoke the showSaveFilePicker first and then the pop-up
Author
Owner

@pjlammertyn commented on GitHub (May 25, 2023):

can't you async await the saveToFile() method?

<!-- gh-comment-id:1562581378 --> @pjlammertyn commented on GitHub (May 25, 2023): can't you async await the saveToFile() method?
Author
Owner

@pjlammertyn commented on GitHub (May 25, 2023):

nope async wont work

<!-- gh-comment-id:1562591706 --> @pjlammertyn commented on GitHub (May 25, 2023): nope async wont work
Author
Owner

@pjlammertyn commented on GitHub (May 25, 2023):

best then to remove the saveToFile dialog

<!-- gh-comment-id:1562602788 --> @pjlammertyn commented on GitHub (May 25, 2023): best then to remove the saveToFile dialog
Author
Owner

@pjlammertyn commented on GitHub (May 25, 2023):

also Gecko based browsers:

window.addEventListener("beforeunload", (e) => {
  const confirmationMessage = "\\o/";

  // Gecko + IE
  (e || window.event).returnValue = confirmationMessage;

  // Safari, Chrome, and other WebKit-derived browsers
  return confirmationMessage;
});

<!-- gh-comment-id:1562604553 --> @pjlammertyn commented on GitHub (May 25, 2023): also Gecko based browsers: ```js window.addEventListener("beforeunload", (e) => { const confirmationMessage = "\\o/"; // Gecko + IE (e || window.event).returnValue = confirmationMessage; // Safari, Chrome, and other WebKit-derived browsers return confirmationMessage; }); ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RADar-AZDelta/archived-Keun#43
No description provided.