Skip to content

Commit

Permalink
Fix #101 Check children in popout click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Mar 10, 2019
1 parent fe30ffd commit c29f076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/confirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class Confirmation extends Popover {
$(this.element).on(Event.SHOWN, () => {
if (self.config.popout && !self.eventBody) {
self.eventBody = $('body').on(`${Event.CLICK}.${self.uid}`, (e) => {
if ($(self.config._selector).is(e.target)) {
if ($(self.config._selector).is(e.target) || $(self.config._selector).has(e.target).length > 0) {
return;
}
// close all popover already initialized
Expand Down

0 comments on commit c29f076

Please sign in to comment.