diff --git a/app/assets/javascripts/discourse/app/components/d-modal.js b/app/assets/javascripts/discourse/app/components/d-modal.js index c262a3b979a..6f829604f53 100644 --- a/app/assets/javascripts/discourse/app/components/d-modal.js +++ b/app/assets/javascripts/discourse/app/components/d-modal.js @@ -86,6 +86,7 @@ export default class DModal extends Component { } if (event.key === "Escape" && this.dismissable) { + event.stopPropagation(); this.args.closeModal({ initiatedBy: CLOSE_INITIATED_BY_ESC }); }