-
Notifications
You must be signed in to change notification settings - Fork 342
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
[#2864] va-select
hovered position fix
#3129
[#2864] va-select
hovered position fix
#3129
Conversation
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.
return findNextActiveOption(currentOptionIndex.value - 1, true) | ||
} | ||
|
||
return undefined |
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.
Redundant undefined
.
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.
It's not redundant -> eslint rules forces computed to have obvious return value.
Issue with 0
not related to this pr, will move it separately.
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.
How about null
. It is not undefined, it is empty.
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.
It's not empty, it doesn't exist, undefined. Moreover, findNextActiveOption
may return undefined
if find
method will find nothing. I don't think it's a good case to have one computed to return both null
and undefined
in same situations.
# Conflicts: # packages/ui/src/components/va-select/VaSelect.vue
Closes: #2964
Description
selectedTopShown
state after selection loses her hovered state, it goes to the previous option;Need QA, expecially of keyboard navigation.
Types of changes