mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01:00
Fixed navigation not working with version selector
This commit is contained in:
parent
8c02d7c660
commit
4f78e81959
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -216,7 +216,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/bundle.431f3d41.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.a877e258.min.js' | url }}"></script>
|
||||||
{% for path in config["extra_javascript"] %}
|
{% for path in config["extra_javascript"] %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -102,7 +102,6 @@ export function setupVersionSelector(
|
|||||||
filter(ev => !ev.metaKey && !ev.ctrlKey),
|
filter(ev => !ev.metaKey && !ev.ctrlKey),
|
||||||
withLatestFrom(current$),
|
withLatestFrom(current$),
|
||||||
switchMap(([ev, current]) => {
|
switchMap(([ev, current]) => {
|
||||||
ev.preventDefault()
|
|
||||||
if (ev.target instanceof Element) {
|
if (ev.target instanceof Element) {
|
||||||
const el = ev.target.closest("a")
|
const el = ev.target.closest("a")
|
||||||
if (el && !el.target && urls.has(el.href)) {
|
if (el && !el.target && urls.has(el.href)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user