We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75ecfcc commit 06c0976Copy full SHA for 06c0976
packages/form-render/src/derivative/SearchForm/index.tsx
@@ -135,6 +135,27 @@ const SearchForm: <RecordType extends object = any>(props: SearchProps<RecordTyp
135
}
136
}, [column]);
137
138
+ useUpdateEffect(() => {
139
+ if (collapsed) {
140
+ if ((!isColumn && fieldNum > (column * 2 - 1)) || (isColumn && fieldNum > (column -1))) {
141
+ setState({
142
+ hasCollapse: true,
143
+ isExpand: !defaultCollapsed
144
+ });
145
+ } else {
146
147
+ hasCollapse: false,
148
+ isExpand: true
149
150
+ }
151
152
153
154
+ isExpand: true,
155
156
157
+ }, [collapsed]);
158
+
159
const initMount = async () => {
160
if (!searchOnMount) {
161
return;
0 commit comments