Make changing doc search unhighlight current result
If a result is highlighted, when the search changes that state should no longer be highlighted. Fixes #24044 cc @steveklabnik
This commit is contained in:
@@ -468,6 +468,8 @@
|
|||||||
if ($active.length) {
|
if ($active.length) {
|
||||||
document.location.href = $active.find('a').prop('href');
|
document.location.href = $active.find('a').prop('href');
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$active.removeClass('highlighted');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user