Skip to content

Commit

Permalink
Merge pull request #35610 from dimagi/rc/app-not-found-error-on-cance…
Browse files Browse the repository at this point in the history
…l-alert

prevent default click event behavior to preserve full url
  • Loading branch information
Robert-Costello authored Jan 10, 2025
2 parents b952a5c + 5b4f413 commit e2603b1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,8 @@ hqDefine("cloudcare/js/formplayer/menus/views", [
'click .js-home': 'onClickHome',
'keydown .js-home': 'onKeyActionHome',
},
onClickHome: function () {
onClickHome: function (e) {
e.preventDefault();
if (!FormplayerFrontend.confirmUserWantsToNavigateAwayFromForm()) {
return;
}
Expand Down

0 comments on commit e2603b1

Please sign in to comment.