Skip to content

Commit

Permalink
Fix tooltips in Safari (iOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriankumpf committed Jan 14, 2020
1 parent 38b86ae commit 3904a18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ document.addEventListener("DOMContentLoaded", () => {
});
}
});

// Fix sticky hover on iOS
document.addEventListener("click", x => 0);
2 changes: 1 addition & 1 deletion lib/teslamate_web/templates/layout/app.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<body tabIndex=0>
<nav class="navbar is-dark" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
Expand Down

0 comments on commit 3904a18

Please sign in to comment.