Skip to content

Commit

Permalink
fix(address): 选择最后一级时 onChange 缺少 value 字段
Browse files Browse the repository at this point in the history
  • Loading branch information
yang1206 committed Nov 23, 2023
1 parent 42f1b9c commit 04d9262
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nutui/components/address/address.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,12 @@ function nextAreaList(item: AddressRegionData) {
// 删除右边已选择数据
selectedRegion.value.splice(tab + 1, selectedRegion.value.length - (tab + 1))
callBackParams.value = item
if (regionData[tab + 1]?.length > 0) {
tabIndex.value = tab + 1
callBackParams.next = tabName.value[tabIndex.value]
callBackParams.value = item
scrollTo()
}
Expand Down

1 comment on commit 04d9262

@vercel
Copy link

@vercel vercel bot commented on 04d9262 Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.