-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
feat(VMenu): disable-keys prop #5138
Conversation
c37e6a4
to
5d24f0e
Compare
@@ -13,6 +13,13 @@ import { keyCodes } from '../../../util/helpers' | |||
|
|||
/* @vue/component */ | |||
export default { | |||
props: { | |||
keyable: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that we have older exceptions else where, but I tend to lean towards props that require boolean true
to be active as opposed to writing :prop="false"
. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm ok with disableKeys
prop (default: false
)
This is tagged as a bug but submitted to the dev branch, could you provide additional insight? |
It introduces a new |
Alternative without a new prop: #5716 |
Codecov Report
@@ Coverage Diff @@
## dev #5138 +/- ##
==========================================
+ Coverage 88.52% 88.54% +0.01%
==========================================
Files 281 281
Lines 6303 6303
Branches 1581 1581
==========================================
+ Hits 5580 5581 +1
+ Misses 605 604 -1
Partials 118 118
Continue to review full report at Codecov.
|
73311fe
to
c332042
Compare
Description
Adds
disable-keys
prop to disable the keyboard event handlers used only when thev-menu
is used as a real menu with selecting items by pressing up/down/enter etcMotivation and Context
fixes #5103
How Has This Been Tested?
visually, unit
Markup:
Types of changes
Checklist:
master
for bug fixes,dev
for new features and breaking changes).