Update offcanvas.js

This commit is contained in:
Nicolas Frandeboeuf
2017-01-16 18:46:28 +01:00
committed by minstel
parent 64d1920836
commit ceb0388349

View File

@@ -37,7 +37,7 @@
if (this.options.autohide && !this.options.modal) {
var eventName = (navigator.userAgent.match(/(iPad|iPhone)/i) === null) ? 'click' : 'touchstart'
$(document).on('click touchstart', $.proxy(this.autohide, this))
}
}
// Backdrop is added to dropdown on it's open, if device is touchable (or desctop FF, https://github.com/twbs/bootstrap/issues/13748)
// and dropdown is not inside .navbar-nav. So we remove it