Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

n-select组件在设置了filterable属性之后,无法通过再次点击选择框让下拉框消失 #5940

Open
5 tasks done
qilin2008201 opened this issue May 13, 2024 · 1 comment
Labels
untriaged need to sort

Comments

@qilin2008201
Copy link

Describe the bug

n-select组件在设置了filterable属性之后,无法通过再次点击选择框让下拉框消失

Steps to reproduce

n-select组件在设置了filterable属性之后,无法通过再次点击选择框让下拉框消失
在下面的codesandbox链接中,上面的n-select是设置了filterable属性后的效果,下面的n-select是没有设置filterable属性的效果,前者无法通过点击选择框改变下拉框的显示与消失,而后者是可以的

Link to minimal reproduction

https://codesandbox.io/p/sandbox/mystifying-agnesi-mj8nnc?file=%2Fsrc%2FDemo.vue%3A4%2C46

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 14.11 GB / 31.69 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.6 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    naive-ui: 2.37.3 => 2.37.3
    vue: 3.3.4 => 3.3.4

Used Package Manager

npm

Validations

@qilin2008201 qilin2008201 added the untriaged need to sort label May 13, 2024
@keypadDancer
Copy link

不要这个逻辑,这逻辑反人类的
只要我的input还有焦点
那就应该展示选择框

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
Development

No branches or pull requests

2 participants