diff --git a/core/src/components/picker-column-option/picker-column-option.tsx b/core/src/components/picker-column-option/picker-column-option.tsx index c82b5dcff3..8182ba6ee1 100644 --- a/core/src/components/picker-column-option/picker-column-option.tsx +++ b/core/src/components/picker-column-option/picker-column-option.tsx @@ -64,6 +64,20 @@ export class PickerColumnOption implements ComponentInterface { this.ariaLabel = inheritedAttributes['aria-label'] || null; } + /** + * The column options can load at any time + * so the selected option needs to tell the + * parent picker column when it is loaded + * so the picker column can ensure it is + * centered in the view. + */ + componentDidLoad() { + const parentPickerColumn = this.el.closest('ion-picker-column'); + if (parentPickerColumn !== null && this.value === parentPickerColumn.value) { + parentPickerColumn.scrollActiveItemIntoView(); + } + } + /** * When an option is clicked update the * parent picker column value. This