1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 16:25:19 +03:00

Fix: Input field lost focus after confirm() and alert()

This commit is contained in:
Scavanger 2024-11-20 10:58:10 -03:00
parent 324d700afa
commit 6af70e96dd
5 changed files with 12 additions and 12 deletions

View file

@ -542,7 +542,7 @@ GUI_control.prototype.update_dataflash_global = function () {
};
/**
* Don't use alert() in Electron, it has a nasty bug: https://github.com/electron/electron/issues/31917
* Don't use alert() or confirm() in Electron, it has a nasty bug: https://github.com/electron/electron/issues/31917
*/
GUI_control.prototype.alert = function(message) {
dialog.showMessageBoxSync({ message: message, icon: "./images/inav_icon_128.png" });