File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
packages/vuetify/src/components/VList Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export const VListGroup = genericComponent<VListGroupSlots>()({
67
67
68
68
function onClick ( e : Event ) {
69
69
e . stopPropagation ( )
70
+ if ( [ 'INPUT' , 'TEXTAREA' ] . includes ( ( e . target as Element ) ?. tagName ) ) return
70
71
open ( ! isOpen . value , e )
71
72
}
72
73
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ export const VListItem = genericComponent<VListItemSlots>()({
184
184
185
185
function onClick ( e : MouseEvent ) {
186
186
emit ( 'click' , e )
187
+ if ( [ 'INPUT' , 'TEXTAREA' ] . includes ( ( e . target as Element ) ?. tagName ) ) return
187
188
188
189
if ( ! isClickable . value ) return
189
190
@@ -201,6 +202,7 @@ export const VListItem = genericComponent<VListItemSlots>()({
201
202
}
202
203
203
204
function onKeyDown ( e : KeyboardEvent ) {
205
+ if ( [ 'INPUT' , 'TEXTAREA' ] . includes ( ( e . target as Element ) ?. tagName ) ) return
204
206
if ( e . key === 'Enter' || e . key === ' ' ) {
205
207
e . preventDefault ( )
206
208
e . target ! . dispatchEvent ( new MouseEvent ( 'click' , e ) )
You can’t perform that action at this time.
0 commit comments