@@ -69,7 +69,7 @@ import {
69
69
isNextMonthDisabled ,
70
70
isPrevMonthDisabled ,
71
71
} from './utils/state' ;
72
- import { checkForPresentationFormatMismatch , warnIfTimeZoneProvided } from './utils/warn ' ;
72
+ import { checkForPresentationFormatMismatch , warnIfTimeZoneProvided } from './utils/validate ' ;
73
73
74
74
/**
75
75
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
@@ -182,9 +182,9 @@ export class Datetime implements ComponentInterface {
182
182
183
183
@Watch ( 'formatOptions' )
184
184
protected formatOptionsChanged ( ) {
185
- const { formatOptions, presentation } = this ;
186
- checkForPresentationFormatMismatch ( presentation , formatOptions ) ;
187
- warnIfTimeZoneProvided ( formatOptions ) ;
185
+ const { el , formatOptions, presentation } = this ;
186
+ checkForPresentationFormatMismatch ( el , presentation , formatOptions ) ;
187
+ warnIfTimeZoneProvided ( el , formatOptions ) ;
188
188
}
189
189
190
190
/**
@@ -253,8 +253,8 @@ export class Datetime implements ComponentInterface {
253
253
254
254
@Watch ( 'presentation' )
255
255
protected presentationChanged ( ) {
256
- const { formatOptions, presentation } = this ;
257
- checkForPresentationFormatMismatch ( presentation , formatOptions ) ;
256
+ const { el , formatOptions, presentation } = this ;
257
+ checkForPresentationFormatMismatch ( el , presentation , formatOptions ) ;
258
258
}
259
259
260
260
private get isGridStyle ( ) {
@@ -1405,8 +1405,8 @@ export class Datetime implements ComponentInterface {
1405
1405
}
1406
1406
1407
1407
if ( formatOptions ) {
1408
- checkForPresentationFormatMismatch ( presentation , formatOptions ) ;
1409
- warnIfTimeZoneProvided ( formatOptions ) ;
1408
+ checkForPresentationFormatMismatch ( el , presentation , formatOptions ) ;
1409
+ warnIfTimeZoneProvided ( el , formatOptions ) ;
1410
1410
}
1411
1411
1412
1412
const hourValues = ( this . parsedHourValues = convertToArrayOfNumbers ( this . hourValues ) ) ;
0 commit comments