Skip to content

Commit b99f825

Browse files
committed
fix: Wait for flow update before rest
1 parent d722cb0 commit b99f825

File tree

1 file changed

+2
-2
lines changed
  • src/VueDatePicker/composables

1 file changed

+2
-2
lines changed

src/VueDatePicker/composables/flow.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ref, reactive, computed } from 'vue';
1+
import { ref, reactive, computed, nextTick } from 'vue';
22

33
import { CMP, FlowStep } from '@/constants';
44

@@ -35,7 +35,7 @@ export const useFlow = (props: AllPropsType, emit: VueEmit, dynCmpRef: Ref<any>)
3535
handleFlow();
3636
}
3737
if (props.flow?.length === flowStep.value) {
38-
resetFlow();
38+
nextTick().then(() => resetFlow());
3939
}
4040
};
4141

0 commit comments

Comments
 (0)