File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1086,6 +1086,9 @@ export class Datetime implements ComponentInterface {
10861086
10871087 connectedCallback ( ) {
10881088 this . clearFocusVisible = startFocusVisible ( this . el ) . destroy ;
1089+ this . loadTimeout = setTimeout ( ( ) => {
1090+ this . ensureReadyIfVisible ( ) ;
1091+ } , 100 ) ;
10891092 }
10901093
10911094 disconnectedCallback ( ) {
@@ -1095,6 +1098,7 @@ export class Datetime implements ComponentInterface {
10951098 }
10961099 if ( this . loadTimeout ) {
10971100 clearTimeout ( this . loadTimeout ) ;
1101+ this . loadTimeout = undefined ;
10981102 }
10991103 }
11001104
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export class PickerColumn implements ComponentInterface {
122122 * Because this initial call to scrollActiveItemIntoView has to fire before
123123 * the scroll listener is set up, we need to manage the active class manually.
124124 */
125- const oldActive = getElementRoot ( el ) . querySelector < HTMLIonPickerColumnOptionElement > (
125+ const oldActive = el . querySelector < HTMLIonPickerColumnOptionElement > (
126126 `.${ PICKER_ITEM_ACTIVE_CLASS } `
127127 ) ;
128128 if ( oldActive ) {
You can’t perform that action at this time.
0 commit comments