From 464b8917b9db9195a54c3d8def8bc3578a00e283 Mon Sep 17 00:00:00 2001 From: Erik Rothoff Andersson Date: Tue, 26 May 2020 23:18:39 +0200 Subject: [PATCH] Make basic-dialog take into account changes in clickOutsideToclose --- addon/components/basic-dialog.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addon/components/basic-dialog.js b/addon/components/basic-dialog.js index c246d248..6637686b 100644 --- a/addon/components/basic-dialog.js +++ b/addon/components/basic-dialog.js @@ -103,6 +103,10 @@ export default class BasicDialog extends Component { this.makeOverlayClickableOnIOS(); this.handleClick = ({ target }) => { + if (!this.get('clickOutsideToClose')) { + return; + } + // if the click has already resulted in the target // being removed or hidden, do nothing if (target.offsetWidth === 0 && target.offsetHeight === 0) {