提交 8588154b 编写于 作者: E Emanuel Mutschlechner 提交者: Guillaume Chau

fix: Fix component refs (#814)

上级 295a4b85
......@@ -687,12 +687,9 @@ function processState (instance) {
*/
function processRefs (instance) {
if (Object.keys(instance.$refs).length === 0) {
return []
}
console.log(instance.$refs)
let refs = Object.keys(instance.$refs).map(key => getCustomRefDetails(instance, key, instance.$refs[key]))
return refs.length > 0 ? refs : []
return Object.keys(instance.$refs)
.filter(key => instance.$refs[key])
.map(key => getCustomRefDetails(instance, key, instance.$refs[key]))
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册