Skip to content

Commit

Permalink
Merge pull request #1572 from alibaba/fix-SearchForm-collapsed
Browse files Browse the repository at this point in the history
Fix search form collapsed
  • Loading branch information
lhbxs authored Oct 15, 2024
2 parents a717ba1 + 26d10f6 commit b77b34d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/form-render/src/derivative/SearchForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ const SearchForm: <RecordType extends object = any>(props: SearchProps<RecordTyp
initMount();
});

useUpdateEffect(() => {
if (isExpand) {
initMount();
}
}, [isExpand]);

useMount(() => {
if (!collapsed) {
return;
Expand Down

0 comments on commit b77b34d

Please sign in to comment.