File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/vuetify/src/labs/VCalendar Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,7 @@ export const VCalendarDaily = defineComponent({
3838
3939 setup ( props , { slots, attrs } ) {
4040 const scrollPush = ref ( 0 )
41- const scrollArea = ref < HTMLElement > ( )
4241 const pane = ref < HTMLElement > ( )
43-
4442 const base = useCalendarWithIntervals ( props )
4543
4644 function init ( ) {
@@ -52,8 +50,8 @@ export const VCalendarDaily = defineComponent({
5250 }
5351
5452 function getScrollPush ( ) : number {
55- return scrollArea . value && pane . value
56- ? ( scrollArea . value . offsetWidth - pane . value . offsetWidth )
53+ return base . scrollAreaRef . value && pane . value
54+ ? ( base . scrollAreaRef . value . offsetWidth - pane . value . offsetWidth )
5755 : 0
5856 }
5957
@@ -158,7 +156,7 @@ export const VCalendarDaily = defineComponent({
158156
159157 function genScrollArea ( ) {
160158 return (
161- < div ref = { scrollArea } class = "v-calendar-daily__scroll-area" >
159+ < div ref = { base . scrollAreaRef } class = "v-calendar-daily__scroll-area" >
162160 { genPane ( ) }
163161 </ div >
164162 )
@@ -282,7 +280,6 @@ export const VCalendarDaily = defineComponent({
282280 return {
283281 ...base ,
284282 scrollPush,
285- scrollArea,
286283 pane,
287284 init,
288285 onResize,
You can’t perform that action at this time.
0 commit comments