Skip to content

Commit

Permalink
sync placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Jul 9, 2024
1 parent cf12125 commit d2d58cb
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ export class RangeCalendarRootState {
});

/**
* Synchronize the placeholder value with the current value.
* Synchronize the placeholder value with the current start value
*/
// watch(this.value, () => {
// const endValue = this.value.value.end;
// if (endValue && this.placeholder.value !== endValue) {
// this.placeholder.value = endValue;
// }
// });
watch(this.value, () => {
const startValue = this.value.value.start;
if (startValue && this.placeholder.value !== startValue) {
this.placeholder.value = startValue;
}
});

$effect(() => {
const startValue = this.startValue;
Expand Down

0 comments on commit d2d58cb

Please sign in to comment.