Skip to content

Commit d9f96e6

Browse files
committed
Fix tooltip showing over modal on mobile
1 parent 4534349 commit d9f96e6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/script.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
}
2828

2929
function setupTooltips() {
30-
$('[data-toggle="tooltip"]').tooltip();
30+
if (!isMobileDevice()) {
31+
$('[data-toggle="tooltip"]').tooltip();
32+
}
3133
}
3234

3335
function setupModals() {
@@ -46,4 +48,8 @@
4648
function showPage() {
4749
$('body').removeClass('loading');
4850
}
51+
52+
function isMobileDevice() {
53+
return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
54+
}
4955
})(window.jQuery, window.BootstrapDialog);

0 commit comments

Comments
 (0)