mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed intercepting of link clicks when instant loading is disabled
This commit is contained in:
parent
012cd24f06
commit
abec4824bd
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.7fa1da95.min.js.map
Normal file
1
material/assets/javascripts/bundle.7fa1da95.min.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.5b33ad8d.min.js",
|
"assets/javascripts/bundle.js": "assets/javascripts/bundle.7fa1da95.min.js",
|
||||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.5b33ad8d.min.js.map",
|
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.7fa1da95.min.js.map",
|
||||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.31a2e7b9.min.js",
|
"assets/javascripts/vendor.js": "assets/javascripts/vendor.31a2e7b9.min.js",
|
||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.31a2e7b9.min.js.map",
|
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.31a2e7b9.min.js.map",
|
||||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.edc88caf.min.js",
|
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.edc88caf.min.js",
|
||||||
|
@ -179,7 +179,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/vendor.31a2e7b9.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/vendor.31a2e7b9.min.js' | url }}"></script>
|
||||||
<script src="{{ 'assets/javascripts/bundle.5b33ad8d.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.7fa1da95.min.js' | url }}"></script>
|
||||||
{%- set translations = {} -%}
|
{%- set translations = {} -%}
|
||||||
{%- for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
|
@ -319,7 +319,7 @@ export function initialize(config: unknown) {
|
|||||||
if (ev.target instanceof HTMLElement) {
|
if (ev.target instanceof HTMLElement) {
|
||||||
const el = ev.target.closest("a") // TODO: abstract as link click?
|
const el = ev.target.closest("a") // TODO: abstract as link click?
|
||||||
if (el && isLocationInternal(el)) {
|
if (el && isLocationInternal(el)) {
|
||||||
if (!isLocationAnchor(el))
|
if (!isLocationAnchor(el) && config.features.includes("instant"))
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
return of(el)
|
return of(el)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user