cascader icon indicating copy to clipboard operation
cascader copied to clipboard

fix: useKeyboard 查询 activeIndex 缺少判空

Open spade5 opened this issue 3 years ago • 4 comments

spade5 avatar Jul 12 '22 07:07 spade5

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cascader ✅ Ready (Inspect) Visit Preview Jul 12, 2022 at 7:28AM (UTC)

vercel[bot] avatar Jul 12 '22 07:07 vercel[bot]

This pull request introduces 1 alert when merging 4eec0eb1887b565b969f2b34f4a34bdc751de708 into 37db73bb301926205edd5daa5377b53f9a391e83 - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

lgtm-com[bot] avatar Jul 12 '22 07:07 lgtm-com[bot]

解决什么问题?

afc163 avatar Jul 12 '22 12:07 afc163

解决什么问题?

这部分代码判断不严谨,传入的数据可能没有下一级结构,在我们的项目中偶现报错(currentOptions is undefined)

spade5 avatar Jul 13 '22 07:07 spade5