File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <md-popover :md-settings =" popperSettings" md-active >
2
+ <md-popover :md-settings =" popperSettings" md-active @mounted = " OnPopoverMounted " >
3
3
<transition name =" md-datepicker-dialog" appear @enter =" setContentStyles" @after-leave =" resetDate" >
4
4
<div class =" md-datepicker-dialog" :class =" [$mdActiveTheme]" >
5
5
<div class =" md-datepicker-header" >
146
146
monthAction: null ,
147
147
currentView: ' day' ,
148
148
contentStyles: {},
149
- availableYears: null
149
+ availableYears: null ,
150
+ popover: null
150
151
}),
151
152
computed: {
152
153
firstDayOfAWeek () {
260
261
}
261
262
},
262
263
methods: {
264
+ OnPopoverMounted (popover ) {
265
+ this .popover = popover
266
+ },
263
267
setContentStyles () {
264
268
const months = getElements (this .$el , ' .md-datepicker-month' )
265
269
349
353
created () {
350
354
this .setAvailableYears ()
351
355
this .resetDate ()
356
+ },
357
+ activated () {
358
+ if (this .popover && this .popover .popperInstance ) {
359
+ this .$nextTick (() => this .popover .popperInstance .update ())
360
+ }
352
361
}
353
362
})
354
363
</script >
Original file line number Diff line number Diff line change 108
108
},
109
109
mounted () {
110
110
this .resetPopper ()
111
+ this .$emit (' mounted' , this )
111
112
},
112
113
render (createElement ) {
113
114
return createElement (MdPortal, {
You can’t perform that action at this time.
0 commit comments