fix(datetime): typing in time now updates value (#25561)

resolves #25560
This commit is contained in:
Liam DeBeasi
2022-07-01 10:03:13 -04:00
committed by GitHub
parent 3b0ed78302
commit 1b1b1a3800
5 changed files with 108 additions and 4 deletions

View File

@ -144,7 +144,15 @@ export class PickerColumnInternal implements ComponentInterface {
}
}
private setValue(value?: string | number) {
/**
* Sets the value prop and fires the ionChange event.
* This is used when we need to fire ionChange from
* user-generated events that cannot be caught with normal
* input/change event listeners.
* @internal
*/
@Method()
async setValue(value?: string | number) {
const { items } = this;
this.value = value;
const findItem = items.find((item) => item.value === value);