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

NButton's keyboard="false" prop can't work independently #1508

Closed
joo1es opened this issue Nov 3, 2021 · 0 comments · Fixed by #1509
Closed

NButton's keyboard="false" prop can't work independently #1508

joo1es opened this issue Nov 3, 2021 · 0 comments · Fixed by #1509
Labels
untriaged need to sort

Comments

@joo1es
Copy link

joo1es commented Nov 3, 2021

TuSimple/naive-ui version (版本)

2.20.1

Vue version (Vue 版本)

3.2.21

Browser and its version (浏览器及其版本)

Chrome

System and its version (系统及其版本)

Win11

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/thirsty-kare-y3wnp?file=/src/Demo.vue:173-190

Reappearance steps (重现步骤)

As the first button shows, when i set 'keyboard' to 'false', keyboard event like SPACE and ENTER is still working.

Expected results (期望的结果)

if I set 'keyboard' to 'false', it means i never wanna a keyboard event, so prevent it.

Actual results (实际的结果)

I have to set @keydown.prevent, @keyup.prevent and :keyboard="false", so that I can prevent the keyboard event.

Remarks (补充说明)

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

Successfully merging a pull request may close this issue.

1 participant