File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
packages/vuetify/src/mixins/selectable Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export default mixins(
9292 if ( ! label ) return label
9393
9494 // Label shouldn't cause the input to focus
95- label ! . onClick = prevent
95+ label ! . onClick = this . onClick
9696
9797 return label
9898 } ,
@@ -116,14 +116,8 @@ export default mixins(
116116 } )
117117 } ,
118118 onClick ( e : Event ) {
119- // тут задваиваются клики
120- const target = e . target as HTMLElement
121- const isCurrentClick = target . id === this . computedId
122- const isRippleClick = target . classList . contains ( 'v-input--selection-controls__ripple' )
123-
124- if ( isCurrentClick || isRippleClick || ! this . computedId ) {
125- this . onChange ( ) ;
126- }
119+ e . preventDefault ( )
120+ this . onChange ( )
127121 this . $emit ( 'click' , e )
128122 } ,
129123 onChange ( ) {
You can’t perform that action at this time.
0 commit comments