|
@@ -1895,7 +1895,7 @@
|
|
self.observerbody = new ClsMutationObserver(function(mutations) {
|
|
self.observerbody = new ClsMutationObserver(function(mutations) {
|
|
mutations.forEach(function(mut){
|
|
mutations.forEach(function(mut){
|
|
if (mut.type=="attributes") {
|
|
if (mut.type=="attributes") {
|
|
- return ($("body").hasClass("modal-open")) ? self.hide() : self.show(); // Support for Bootstrap modal
|
|
|
|
|
|
+ return ($("body").hasClass("modal-open") && !$.contains($('.modal-dialog')[0],self.doc[0])) ? self.hide() : self.show(); // Support for Bootstrap modal; Added check if the nice scroll element is inside a modal
|
|
}
|
|
}
|
|
});
|
|
});
|
|
if (document.body.scrollHeight!=self.page.maxh) return self.lazyResize(30);
|
|
if (document.body.scrollHeight!=self.page.maxh) return self.lazyResize(30);
|
|
@@ -3631,4 +3631,4 @@
|
|
$.nicescroll.options = _globaloptions;
|
|
$.nicescroll.options = _globaloptions;
|
|
}
|
|
}
|
|
|
|
|
|
-}));
|
|
|
|
|
|
+}));
|