mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 11:35:17 -04:00
Fixed find-in-page detecting matches in hidden search results
This commit is contained in:
@@ -106,9 +106,10 @@ export function mountSearchResult(
|
||||
|
||||
/* Reveal to accessibility tree – see https://bit.ly/3iAA7t8 */
|
||||
watchToggle("search")
|
||||
.subscribe(active => list.setAttribute(
|
||||
"role", active ? "list" : "presentation"
|
||||
))
|
||||
.subscribe(active => {
|
||||
list.setAttribute("role", active ? "list" : "hidden")
|
||||
list.hidden = !active
|
||||
})
|
||||
|
||||
/* Update search result metadata */
|
||||
push$
|
||||
|
||||
Reference in New Issue
Block a user