1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -167,7 +167,7 @@
{% endblock %}
</div>
{% block scripts %}
<script src="{{ base_url }}/assets/javascripts/application.dda16324.js"></script>
<script src="{{ base_url }}/assets/javascripts/application.98974103.js"></script>
{% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}

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 => {