-
Notifications
You must be signed in to change notification settings - Fork 40
Description
can be replicated on the demo example. this appears to be because the entire dialog is wrapped inside of the "modal-backdrop" div, and both your code and bootstrap have the following code for sending backdrop clicks, which doesn't distinguish between a direct div click and clicks of its children
if ( this.settings.backdrop != 'static' ) {
this.$backdrop.click($.proxy(this.hide, this))
}
i've tried my hand at limiting the target of the code using direct identification on the target, but my scoping of "this" isn't quite right, so no luck yet...:
if (this.options.backdrop != 'static') {
this.$backdrop.click(function(e){
/* Added by Sol - need to target just the outer backdrop to close, not inner children */
if (e.target.className == "modal-backdrop in")
{
$.proxy(this.hide, this)();
}
})
}