mirror of
https://github.com/antfu-collective/icones.git
synced 2026-01-09 07:40:49 +08:00
fix: fixed the stale collection and icon used on navigation between collection (#385)
Co-authored-by: kj-bonami <krishna.jha@bonamisoftware.com>
This commit is contained in:
parent
5d84a71493
commit
5debe320d9
@ -284,6 +284,7 @@ useEventListener(categoriesContainer, 'wheel', (e: WheelEvent) => {
|
||||
<!-- Icons -->
|
||||
<div class="px-5 pt-2 pb-4 text-center">
|
||||
<Icons
|
||||
:key="namespace"
|
||||
:icons="icons.slice(0, max)"
|
||||
:selected="bags"
|
||||
:class="iconSize"
|
||||
|
||||
@ -111,7 +111,7 @@ export function useSearch(collection: Ref<CollectionMeta | null>) {
|
||||
|
||||
const debouncedSearch = useDebounceFn(runSearch, 200)
|
||||
|
||||
watch([category, variant], () => {
|
||||
watch([category, variant, () => collection.value?.id], () => {
|
||||
runSearch()
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user