mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(datetime): change now emitted when picker is typed into (#24018)
This commit is contained in:
@ -64,7 +64,13 @@ export class PickerColumnInternal implements ComponentInterface {
|
||||
|
||||
@Watch('value')
|
||||
valueChange() {
|
||||
const { items, value } = this;
|
||||
this.scrollActiveItemIntoView();
|
||||
|
||||
const findItem = items.find(item => item.value === value);
|
||||
if (findItem) {
|
||||
this.ionChange.emit(findItem);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -206,7 +212,6 @@ export class PickerColumnInternal implements ComponentInterface {
|
||||
|
||||
if (selectedItem.value !== this.value) {
|
||||
this.value = selectedItem.value;
|
||||
this.ionChange.emit(selectedItem);
|
||||
hapticSelectionEnd();
|
||||
this.hapticsStarted = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user