Skip to content

Commit

Permalink
fix(VSelect): toggle menu when clicking control (#15603)
Browse files Browse the repository at this point in the history
fixes #15522
  • Loading branch information
johnleider authored Aug 9, 2022
1 parent 0c3a798 commit acfc3c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vuetify/src/components/VSelect/VSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const VSelect = genericComponent<new <
function onClickControl () {
if (props.hideNoData && !items.value.length) return

menu.value = true
menu.value = !menu.value
}
function onKeydown (e: KeyboardEvent) {
if (['Enter', 'ArrowDown', ' '].includes(e.key)) {
Expand Down Expand Up @@ -180,7 +180,6 @@ export const VSelect = genericComponent<new <
appendInnerIcon={ props.menuIcon }
readonly
onClick:clear={ onClear }
onClick:input={ onClickControl }
onClick:control={ onClickControl }
onBlur={ () => menu.value = false }
onKeydown={ onKeydown }
Expand Down

0 comments on commit acfc3c4

Please sign in to comment.