You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4906587
Browse filesBrowse the repository at this point in the historyBrowse files
Fix website listings stacking update handlers on hash change (#15214)
Register each listing's update handler once
Pages with several listings attached another list.on("updated")
handler to every listing on each URL hash change, so a single update
reran the same work several times. Each listing's inline script called
the handler on DOMContentLoaded and again from its own hashchange
listener. Wiring now runs once per listing id, and one hashchange
listener in quarto-listing.js only applies the hash.
- Wire each listing once, keyed by its id
- Move hash handling into applyListingHash()
- Replace the per-listing hashchange listeners with a single one
- Pin hash, pagination, and update-handler behavior with tests
The hashchange listener dates from #1139, and back/forward between
categories still depends on it. Found while reviewing #9469.
Fixes#15206
Copy file name to clipboardExpand all lines: news/changelog-1.11.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,7 @@ All changes included in 1.11:
142
142
- ([#15091](https://github.com/quarto-dev/quarto-cli/pull/15091)): Fix page-level `bread-crumbs`, `back-to-top-navigation`, `page-navigation`, `margin-header` and `margin-footer` options not being validated or offered for completion in editors. A page value of the wrong type now fails to render with an error instead of being accepted silently.
143
143
- ([#15091](https://github.com/quarto-dev/quarto-cli/pull/15091)): Fix `open-graph: false` or `twitter-card: false` in page front matter or `_metadata.yml` not disabling Open Graph or Twitter Card metadata for that page when the website enables it.
144
144
- ([#15114](https://github.com/quarto-dev/quarto-cli/pull/15114)): Fix a website category containing backticks showing broken text in the page title block, and a category containing a backslash, such as a Windows path, failing the render or losing its backslashes.
145
+
- ([#15206](https://github.com/quarto-dev/quarto-cli/issues/15206)): Fix website listings attaching another update handler on every URL hash change, and an extra one per additional listing on the same page.
0 commit comments