Skip to content

Commit

Permalink
feat(date-picker): placeholder周りの処理修正
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tada committed Dec 25, 2024
1 parent 3fe1ffc commit d92cc4f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ const borderState = computed(() => {
const variant = computed(() => {
if (props.disabled) return "disabled";
if (tempDate.value) return "selected";
if (calendarValue.value) return "selected";
return "default";
});
Expand All @@ -329,7 +329,7 @@ const onClickCancel = (e: MouseEvent) => {
e.stopPropagation();
tempDate.value = null;
currentMonth.value = new Date(defaultCurrentMonth);
calendarValue.value = null;
emit("update:modelValue", null);
setIsOpen(false);
};
Expand Down

0 comments on commit d92cc4f

Please sign in to comment.