Skip to content

Commit d7be2d6

Browse files
committed
fix: Prevent input format on internal-model-change event emit (fixes #848)
1 parent 2559857 commit d7be2d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/VueDatePicker/composables/external-internal-mapper.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,9 @@ export const useExternalInternalMapper = (emit: VueEmit, props: AllPropsType, is
403403
* and format input value
404404
*/
405405
const emitModelValue = (returnOnly: boolean = false) => {
406-
formatInputValue();
406+
if (!returnOnly) {
407+
formatInputValue();
408+
}
407409

408410
if (props.monthPicker) return modeEmitter(getMonthVal, returnOnly);
409411
if (props.timePicker) return modeEmitter(getTimeVal, returnOnly);

0 commit comments

Comments
 (0)