File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,8 @@ export const createFormExternals = (
193
193
delete patchState . values
194
194
Object . assign ( state , patchState )
195
195
}
196
- syncFormMessages ( 'errors' , state , true )
197
- syncFormMessages ( 'warnings' , state , true )
196
+ syncFormMessages ( 'errors' , state )
197
+ syncFormMessages ( 'warnings' , state )
198
198
} )
199
199
}
200
200
if ( currentField ) {
@@ -228,9 +228,11 @@ export const createFormExternals = (
228
228
const currentTags = parseArrayTags ( published . value )
229
229
if ( ! isEqual ( prevTags , currentTags ) ) {
230
230
const removedTags = calculateRemovedTags ( prevTags , currentTags )
231
- eachArrayExchanges ( field . prevState , published , ( prev , current ) =>
232
- exchangeState ( path , prev , current )
233
- )
231
+ form . batch ( ( ) => {
232
+ eachArrayExchanges ( field . prevState , published , ( prev , current ) =>
233
+ exchangeState ( path , prev , current )
234
+ )
235
+ } )
234
236
removeArrayNodes ( removedTags )
235
237
//重置TAG,保证下次状态交换是没问题的
236
238
setFormValuesIn (
You can’t perform that action at this time.
0 commit comments