Skip to content

Commit

Permalink
Make basic-dialog take into account changes in clickOutsideToclose
Browse files Browse the repository at this point in the history
  • Loading branch information
erkie committed Aug 30, 2021
1 parent 80eab90 commit 464b891
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/components/basic-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 464b891

Please sign in to comment.