Skip to content

Commit b5b1346

Browse files
author
wangyue
committed
fix: 修复confirm操作返回值index无数据的问题
Signed-off-by: wangyue <wangyue334@h-partners.com>
1 parent 80ef21d commit b5b1346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

harmony/picker/src/main/ets/PickerBaseOperate.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function changeSelect(val: string | string[], index: number | number[]) {
101101
const valArr = Array.isArray(val)? JSON.stringify(val) : JSON.stringify([val]);
102102
const indexArr = Array.isArray(val)? JSON.stringify(index) : JSON.stringify([index]);
103103
pickerCtx.rnInstance.emitDeviceEvent(EVENT, { type: SELECT, selectedValue: valArr, selectedIndex: indexArr });
104-
defaultValue = val;
104+
defaultValue = JSON.parse(valArr);
105105
selectIndex = index as number[];
106106
} catch (error) {
107107
Logger.error(TAG,

0 commit comments

Comments
 (0)