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:
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 %}
|
||||
</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] != "" %}
|
||||
|
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user