Skip to content

Commit e7741a4

Browse files
authored
Merge pull request #9784 from quarto-dev/fix/margin-sidebar-toggle
2 parents f2da66d + d5aa2de commit e7741a4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

news/changelog-1.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ All changes included in 1.5:
5757
- ([#8851](https://github.com/quarto-dev/quarto-cli/issues/8851)): Don't strip `index.html` from external paths.
5858
- ([#8977](https://github.com/quarto-dev/quarto-cli/issues/8977)): Don't decorate about links within external link icons.
5959
- ([#9356](https://github.com/quarto-dev/quarto-cli/issues/9356)): Don't process column classes for figures inside the About divs.
60+
- ([#9781](https://github.com/quarto-dev/quarto-cli/issues/9781)): Correctly hide elements from click event in collapsed margin sidebar.
6061

6162
## Book
6263

src/resources/formats/html/quarto.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
319319
for (const child of el.children) {
320320
child.style.opacity = 0;
321321
child.style.overflow = "hidden";
322+
child.style.pointerEvents = "none";
322323
}
323324

324325
nexttick(() => {
@@ -360,6 +361,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
360361

361362
const clone = child.cloneNode(true);
362363
clone.style.opacity = 1;
364+
clone.style.pointerEvents = null;
363365
clone.style.display = null;
364366
toggleContents.append(clone);
365367
}
@@ -434,6 +436,7 @@ window.document.addEventListener("DOMContentLoaded", function (_event) {
434436
for (const child of el.children) {
435437
child.style.opacity = 1;
436438
child.style.overflow = null;
439+
child.style.pointerEvents = null;
437440
}
438441

439442
const placeholderEl = window.document.getElementById(

0 commit comments

Comments
 (0)