Skip to content

Commit ae42350

Browse files
knoxnoegoutongwangjd-solanki
authored
fix(list): handle reactive items (#144)
Co-authored-by: goutongwang <goutongwang.979@bytedance.com> Co-authored-by: jd-solanki <jdsolanki0001@gmail.com>
1 parent 3be7018 commit ae42350

File tree

1 file changed

+1
-1
lines changed
  • packages/anu-vue/src/components/list

1 file changed

+1
-1
lines changed

packages/anu-vue/src/components/list/AList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const listItemPrefixedSlots = prefixObjectKeysWithMeta(listItemComponentSlots, l
6363
:color="props.color"
6464
:variant="props.variant"
6565
:states="props.states"
66-
:is-active="options[index].isSelected as unknown as boolean"
66+
:is-active="options[index]?.isSelected as unknown as boolean"
6767
:value="props.modelValue !== undefined ? options[index] : undefined"
6868
v-on="{
6969
click: props['onClick:item'] || (props.modelValue !== undefined)

0 commit comments

Comments
 (0)