fix: Don't include modal headings in right-hand nav menu (#5710)

Fixes #5701
This commit is contained in:
Lars Eggert 2023-05-30 19:56:17 +03:00 committed by GitHub
parent a4adceccdd
commit f8e1899108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,7 +155,7 @@ $(function () {
const heading_selector = ":is(h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6, .nav-heading):not([style='display:none']):not(.navskip)";
const headings = contentElement
.find(heading_selector)
.filter((i, el) => !el.closest(".navskip"));
.filter((i, el) => !el.closest(".navskip,.modal"));
const contents = (headings.length > 0) &&
($(headings)