@@ -1171,15 +1171,11 @@ export class Datetime implements ComponentInterface {
11711171 * datetime is visible but the host clearly has layout, ensure
11721172 * we still initialize listeners and mark the component as ready.
11731173 *
1174- * We schedule this a couple of frames after load so that any
1175- * initial layout/animations (such as a parent modal presenting)
1176- * have had a chance to run.
1174+ * We schedule this after everything has had a chance to run.
11771175 */
1178- raf ( ( ) => {
1179- raf ( ( ) => {
1180- this . ensureReadyIfVisible ( ) ;
1181- } ) ;
1182- } ) ;
1176+ setTimeout ( ( ) => {
1177+ this . ensureReadyIfVisible ( ) ;
1178+ } , 100 ) ;
11831179
11841180 /**
11851181 * We need to clean up listeners when the datetime is hidden
@@ -2704,9 +2700,9 @@ export class Datetime implements ComponentInterface {
27042700
27052701 We can work around this by observing .intersection-tracker and using the host
27062702 (ion-datetime) as the "root". This allows the IO callback to fire the moment
2707- the datetime is visible. The .intersection-tracker element uses a minimal,
2708- invisible block size so it participates in layout , and it should not be
2709- positioned absolutely otherwise the IO callback may fire at unexpected times.
2703+ the datetime is visible. The .intersection-tracker element should not have
2704+ dimensions or additional styles , and it should not be positioned absolutely
2705+ otherwise the IO callback may fire at unexpected times.
27102706 */ }
27112707 < div class = "intersection-tracker" ref = { ( el ) => ( this . intersectionTrackerRef = el ) } > </ div >
27122708 { this . renderDatetime ( mode ) }
0 commit comments