From 569b26934cf5fd53d0b3170f7fbf8d037da5125d Mon Sep 17 00:00:00 2001 From: sunhao Date: Mon, 15 Jan 2024 10:38:17 +0800 Subject: [PATCH] * picker: set default key with value. --- lib/picker/src/component/picker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/picker/src/component/picker.tsx b/lib/picker/src/component/picker.tsx index 6d72d82dbd..18501078a3 100644 --- a/lib/picker/src/component/picker.tsx +++ b/lib/picker/src/component/picker.tsx @@ -207,6 +207,7 @@ export class Picker); const loadItems = await this.load(); newState.items = loadItems.filter(x => { + x.key = x.key ?? (x.value as string); x.value = String(x.value); if (this.isEmptyValue(x.value as string)) { return false;