Skip to content

Commit

Permalink
fix: 🐛 修复SelectPicker无默认值时仍会查找选择项节点的问题
Browse files Browse the repository at this point in the history
Closes: #281
  • Loading branch information
Moonofweisheng committed May 1, 2024
1 parent 69303b5 commit 130c438
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const { proxy } = getCurrentInstance() as any
function setScrollIntoView() {
let wraperSelector: string = ''
let selectorPromise: Promise<UniApp.NodeInfo | UniApp.NodeInfo[]>[] = []
if (isDef(selectList.value) && !isArray(selectList.value)) {
if (isDef(selectList.value) && selectList.value !== '' && !isArray(selectList.value)) {
wraperSelector = '#wd-radio-group'
selectorPromise = [getRect(`#radio${selectList.value}`, false, proxy)]
} else if (isArray(selectList.value) && selectList.value.length > 0) {
Expand Down

0 comments on commit 130c438

Please sign in to comment.