Improved reset of tabbing behavior

This commit is contained in:
squidfunk
2018-01-11 21:59:25 +01:00
committed by Martin Donath
parent 3217754daa
commit 4026513889
4 changed files with 3 additions and 3 deletions

View File

@@ -310,7 +310,7 @@ function initialize(config) { // eslint-disable-line func-style
}).listen()
/* Listener: reset tabbing behavior */
new Material.Event.Listener(document.body, "click", () => {
new Material.Event.Listener(document.body, "mousedown", () => {
const labels = document.querySelectorAll(
"[data-md-component=navigation] .md-nav__link[tabindex]")
Array.prototype.forEach.call(labels, label => {