mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03: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>
|
||||
{% endblock %}
|
||||
{% 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"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -102,7 +102,6 @@ export function setupVersionSelector(
|
||||
filter(ev => !ev.metaKey && !ev.ctrlKey),
|
||||
withLatestFrom(current$),
|
||||
switchMap(([ev, current]) => {
|
||||
ev.preventDefault()
|
||||
if (ev.target instanceof Element) {
|
||||
const el = ev.target.closest("a")
|
||||
if (el && !el.target && urls.has(el.href)) {
|
||||
|
Loading…
Reference in New Issue
Block a user