Skip to content

Commit

Permalink
fix: dont close static modal with keyboard
Browse files Browse the repository at this point in the history
closes frappe#11926

[skip ci]
  • Loading branch information
ankush committed Nov 6, 2022
1 parent 9b5225f commit 3e45d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/ui/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ function close_grid_and_dialog() {
}

// close open dialog
if (cur_dialog && !cur_dialog.no_cancel_flag) {
if (cur_dialog && !cur_dialog.no_cancel_flag && !cur_dialog.static) {
cur_dialog.cancel();
return false;
}
Expand Down

0 comments on commit 3e45d80

Please sign in to comment.