@@ -43,7 +43,6 @@ export default Vue.extend({
4343 events : [ Array , Function ] ,
4444 eventColor : [ String , Function ] ,
4545
46- // DEPRECATED; TODO: remove in v2
4746 emitImmediately : Boolean ,
4847
4948 options : [ Array , Function ] ,
@@ -135,11 +134,10 @@ export default Vue.extend({
135134 ( this . disable === true ? ' disabled' : ( this . readonly === true ? ' q-date--readonly' : '' ) )
136135 } ,
137136
138- // DEPRECATED; TODO: remove in v2
139137 isImmediate ( ) {
140138 return this . emitImmediately === true &&
141- this . daysModel [ 0 ] !== void 0 &&
142- this . daysModel [ 0 ] . dateHash !== null
139+ this . multiple !== true &&
140+ this . range !== true
143141 } ,
144142
145143 normalizedModel ( ) {
@@ -1303,9 +1301,10 @@ export default Vue.extend({
13031301 this . $emit ( 'input' , value , reason , details )
13041302 } ,
13051303
1306- // DEPRECATED - TODO: remove in v2
13071304 __emitImmediately ( reason ) {
1308- const date = this . daysModel [ 0 ]
1305+ const date = this . daysModel [ 0 ] !== void 0 && this . daysModel [ 0 ] . dateHash !== null
1306+ ? this . daysModel [ 0 ]
1307+ : { ...this . viewModel } // inherit day, hours, minutes, milliseconds...
13091308
13101309 // nextTick required because of animation delay in viewModel
13111310 this . $nextTick ( ( ) => {
0 commit comments