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 4366672 commit 245bb02Copy full SHA for 245bb02
packages/renderless/src/popeditor/index.ts
@@ -164,9 +164,6 @@ export const handleConfirm =
164
if (skipBeforeClose !== true && typeof props.beforeClose === 'function' && props.beforeClose('confirm') === false) {
165
return
166
}
167
- if (props.autoReset) {
168
- handleReset({ api, state, props })()
169
- }
170
171
if (props.popseletor === constants.TYPE_GRID) {
172
props.multi ? api.getMultiSelectedData({ props, state }) : api.getRadioSelectedData()
@@ -194,6 +191,10 @@ export const handleConfirm =
194
191
195
192
196
193
+ if (props.autoReset) {
+ handleReset({ api, state, props })()
+ }
197
+
198
state.open = false
199
200
0 commit comments