Skip to content

Commit

Permalink
Fixed navigation not working with version selector
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jun 15, 2022
1 parent 8c02d7c commit 4f78e81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
1 change: 0 additions & 1 deletion src/assets/javascripts/integrations/version/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4f78e81

Please sign in to comment.