mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed unnecessary rerender of search results on focus
This commit is contained in:
parent
d21da8d522
commit
af50d5b177
@ -63,6 +63,7 @@ export function mountSearchQuery(
|
|||||||
/* Subscribe worker to search query */
|
/* Subscribe worker to search query */
|
||||||
query$
|
query$
|
||||||
.pipe(
|
.pipe(
|
||||||
|
distinctUntilKeyChanged("value"),
|
||||||
map<SearchQuery, SearchQueryMessage>(({ value }) => ({
|
map<SearchQuery, SearchQueryMessage>(({ value }) => ({
|
||||||
type: SearchMessageType.QUERY,
|
type: SearchMessageType.QUERY,
|
||||||
data: value
|
data: value
|
||||||
|
Loading…
Reference in New Issue
Block a user