mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01:00
Improved reset of tabbing behavior
This commit is contained in:
parent
3217754daa
commit
4026513889
1
material/assets/javascripts/application.98974103.js
Normal file
1
material/assets/javascripts/application.98974103.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -167,7 +167,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% 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" %}
|
{% if lang.t("search.language") != "en" %}
|
||||||
{% set languages = lang.t("search.language").split(",") %}
|
{% set languages = lang.t("search.language").split(",") %}
|
||||||
{% if languages | length and languages[0] != "" %}
|
{% if languages | length and languages[0] != "" %}
|
||||||
|
@ -310,7 +310,7 @@ function initialize(config) { // eslint-disable-line func-style
|
|||||||
}).listen()
|
}).listen()
|
||||||
|
|
||||||
/* Listener: reset tabbing behavior */
|
/* Listener: reset tabbing behavior */
|
||||||
new Material.Event.Listener(document.body, "click", () => {
|
new Material.Event.Listener(document.body, "mousedown", () => {
|
||||||
const labels = document.querySelectorAll(
|
const labels = document.querySelectorAll(
|
||||||
"[data-md-component=navigation] .md-nav__link[tabindex]")
|
"[data-md-component=navigation] .md-nav__link[tabindex]")
|
||||||
Array.prototype.forEach.call(labels, label => {
|
Array.prototype.forEach.call(labels, label => {
|
||||||
|
Loading…
Reference in New Issue
Block a user