fix(datetime): timepicker popover will position relative to click target (#24616)

Resolves #24531, #24415

Co-authored-by: mixalbl4 <mixalbl4.127@gmail.com>>
This commit is contained in:
Sean Perkins
2022-01-25 16:42:57 -05:00
committed by GitHub
parent 7d5c6afd18
commit 378c632643
8 changed files with 106 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import { Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, State, Watch, h } from '@stencil/core';
import { Component, ComponentInterface, Element, Event, EventEmitter, Host, Method, Prop, State, Watch, h } from '@stencil/core';
import { getIonMode } from '../../global/ionic-global';
import { Color } from '../../interface';
@ -118,7 +118,9 @@ export class PickerColumnInternal implements ComponentInterface {
}
}
scrollActiveItemIntoView() {
/** @internal */
@Method()
async scrollActiveItemIntoView() {
const activeEl = this.activeItem;
if (activeEl) {