Fix Chrome dialog auto-dismiss with Bootstrap modals
- Add modal-alerts.js library with Bootstrap modal replacements - Replace all 15 confirm() calls with showConfirm/showDeleteConfirm - Auto-override window.alert() for all alert() calls - Fixes Chrome 132+ aggressively blocking native dialogs
This commit is contained in:
@@ -365,9 +365,9 @@ templ FileBrowser(data dash.FileBrowserData) {
|
||||
showFileProperties(path);
|
||||
break;
|
||||
case 'delete':
|
||||
if (confirm('Are you sure you want to delete "' + path + '"?')) {
|
||||
showDeleteConfirm(path, function() {
|
||||
deleteFile(path);
|
||||
}
|
||||
}, 'Are you sure you want to delete this file?');
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user