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

@ -347,7 +347,7 @@ export class PickerInternal implements ComponentInterface {
*/
const findItemFromCompleteValue = values.find(({ text }) => text.replace(/^0+/, '') === inputEl.value);
if (findItemFromCompleteValue) {
inputModeColumn.value = findItemFromCompleteValue.value;
inputModeColumn.setValue(findItemFromCompleteValue.value);
return;
}
@ -377,7 +377,7 @@ export class PickerInternal implements ComponentInterface {
const item = colEl.items.find(({ text }) => text.replace(behavior, '') === value);
if (item) {
colEl.value = item.value;
colEl.setValue(item.value);
}
};