Skip to content

Commit 9930e69

Browse files
откатываем компонент
1 parent dce833f commit 9930e69

File tree

1 file changed

+1
-14
lines changed
  • packages/vuetify/src/components/VCalendar/mixins

1 file changed

+1
-14
lines changed

packages/vuetify/src/components/VCalendar/mixins/times.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ export default defineComponent({
3636

3737
created () {
3838
this.updateTimes()
39-
// Only call setPresent in non-test environments to avoid interfering with test snapshots
40-
if (process.env.NODE_ENV !== 'test') {
41-
this.setPresent()
42-
}
39+
this.setPresent()
4340
},
4441

4542
methods: {
@@ -53,16 +50,6 @@ export default defineComponent({
5350
this.updateDay(now, this.times.now)
5451
this.updateTime(now, this.times.now)
5552
this.updateDay(now, this.times.today)
56-
57-
// Set relative flags for now and today
58-
// In test environment, these will be overridden by updateRelative calls
59-
this.times.now.present = true
60-
this.times.now.past = false
61-
this.times.now.future = false
62-
63-
this.times.today.present = true
64-
this.times.today.past = false
65-
this.times.today.future = false
6653
},
6754
getNow (): CalendarTimestamp {
6855
return parseDate(new Date())

0 commit comments

Comments
 (0)