Skip to content

Commit 083b8a4

Browse files
committed
Auto merge of #24055 - estsauver:24044, r=alexcrichton
If a result is highlighted, when the search changes that state should no longer be highlighted. Fixes #24044 cc @steveklabnik
2 parents 1169693 + 1b1d910 commit 083b8a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/html/static/main.js

+2
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@
468468
if ($active.length) {
469469
document.location.href = $active.find('a').prop('href');
470470
}
471+
} else {
472+
$active.removeClass('highlighted');
471473
}
472474
});
473475
}

0 commit comments

Comments
 (0)