Skip to content

Commit f8e1899

Browse files
authored
fix: Don't include modal headings in right-hand nav menu (ietf-tools#5710)
Fixes ietf-tools#5701
1 parent a4adcec commit f8e1899

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/static/js/ietf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ $(function () {
155155
const heading_selector = ":is(h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6, .nav-heading):not([style='display:none']):not(.navskip)";
156156
const headings = contentElement
157157
.find(heading_selector)
158-
.filter((i, el) => !el.closest(".navskip"));
158+
.filter((i, el) => !el.closest(".navskip,.modal"));
159159

160160
const contents = (headings.length > 0) &&
161161
($(headings)

0 commit comments

Comments
 (0)