mirror of
https://github.com/jasny/bootstrap.git
synced 2026-04-24 03:00:49 -04:00
Update offcanvas.js
This commit is contained in:
committed by
minstel
parent
64d1920836
commit
ceb0388349
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user