Skip to content

Commit 245bb02

Browse files
committed
fix(popeditor): fix issue #2652
1 parent 4366672 commit 245bb02

File tree

1 file changed

+4
-3
lines changed
  • packages/renderless/src/popeditor

1 file changed

+4
-3
lines changed

packages/renderless/src/popeditor/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@ export const handleConfirm =
164164
if (skipBeforeClose !== true && typeof props.beforeClose === 'function' && props.beforeClose('confirm') === false) {
165165
return
166166
}
167-
if (props.autoReset) {
168-
handleReset({ api, state, props })()
169-
}
170167

171168
if (props.popseletor === constants.TYPE_GRID) {
172169
props.multi ? api.getMultiSelectedData({ props, state }) : api.getRadioSelectedData()
@@ -194,6 +191,10 @@ export const handleConfirm =
194191
}
195192
}
196193

194+
if (props.autoReset) {
195+
handleReset({ api, state, props })()
196+
}
197+
197198
state.open = false
198199
}
199200

0 commit comments

Comments
 (0)