Skip to content

Commit

Permalink
fix:修复SearchForm设置 collapsed={true}时,点击展开,无法加载本来隐藏的下拉框的下拉数据(由onMount方…
Browse files Browse the repository at this point in the history
…法中设置的下拉数据)
  • Loading branch information
昔梦 committed Sep 27, 2024
1 parent 17ff989 commit 26d10f6
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 26d10f6

Please sign in to comment.