Fixed navigation not working with version selector

This commit is contained in:
squidfunk 2022-06-15 22:35:37 +02:00
parent 8c02d7c660
commit 4f78e81959
4 changed files with 5 additions and 6 deletions

View File

@ -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 %}

View File

@ -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)) {