Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): collection filter list animation (#8299)

pengx17a88e82a534ef
diff --git a/packages/frontend/core/src/components/page-list/filter/filter-list.tsx b/packages/frontend/core/src/components/page-list/filter/filter-list.tsx
index 3cfe459822..328dec62d1 100644
--- a/packages/frontend/core/src/components/page-list/filter/filter-list.tsx
+++ b/packages/frontend/core/src/components/page-list/filter/filter-list.tsx
@@ -50,6 +50,7 @@ export const FilterList = ({
);
})}
<Menu
+ key={value.length} // hack to force menu to rerender (disable unmount animation)
items={
<CreateFilterMenu
value={value}