element-plus [Bug Report] [Component] [select] el-select 键盘反向

b1uwtaje  于 2022-11-05  发布在  其他
关注(0)|答案(3)|浏览(246)

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

  • el-select

Element Plus Playground

Steps to reproduce

弹出下拉框 然后 点击键盘上下按键,待选项 反向选择

What is Expected?

应该重上到下

What is actually happening?

重下到上

Additional comments

  • (empty)*
brqmpdu1

brqmpdu11#

你的objectList为啥初始化是个对象,后面又赋值一个数组。。。。初始化的时候是个数组就是没问题的了
你的 const objList = ref({name:1});

改成 const objList = ref([{name:1}]);

qacovj5a

qacovj5a2#

Im getting also same problem

t1rydlwq

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.

相关问题