Bug Type:Component
Environment
- Vue Version:
3.2.25
- Element Plus Version:
2.0.2
- Browser / OS:
Chrome/100.0.4896.127 Safari/537.36 | Windows NT 10.0
- Build Tool:
Vite
Reproduction
Related Component
el-select
Reproduction Link
Element Plus Playground
Steps to reproduce
弹出下拉框 然后 点击键盘上下按键,待选项 反向选择
What is Expected?
应该重上到下
What is actually happening?
重下到上
Additional comments
- (empty)*
3条答案
按热度按时间brqmpdu11#
你的objectList为啥初始化是个对象,后面又赋值一个数组。。。。初始化的时候是个数组就是没问题的了
你的 const objList = ref({name:1});
改成 const objList = ref([{name:1}]);
qacovj5a2#
Im getting also same problem
t1rydlwq3#
When declaring objList, there seems to be no problem if the initial value is an array. Is there any reason to make the initial value an object?
I think it is better to have the same data structure for the initial value and the change value.