Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Commit

Permalink
fix: Clearing value via keyboard with range and auto-apply throws err…
Browse files Browse the repository at this point in the history
…or (fixes #98)
  • Loading branch information
Jasenkoo committed Feb 11, 2022
1 parent 6295287 commit 04bb761
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const useExternalInternalMapper = (
} else if (timePicker) {
emit('update:modelValue', getTImeForExternal(internalModelValue.value));
} else {
if (range && partialRange && internalModelValue.value.length === 1) {
if (internalModelValue.value && range && partialRange && internalModelValue.value.length === 1) {
internalModelValue.value.push(null);
}
emit('update:modelValue', internalModelValue.value);
Expand Down

0 comments on commit 04bb761

Please sign in to comment.