Skip to content

Commit 760490d

Browse files
authored
fix(VInput): allow text selection in disabled inputs (#14465)
fixes #14238
1 parent 3115798 commit 760490d

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

packages/vuetify/src/components/VAutocomplete/VAutocomplete.sass

-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
.v-select__slot > input
3535
margin-top: $autocomplete-dense-enclosed-input-margin-top
3636

37-
&:not(.v-input--is-disabled).v-select.v-text-field
38-
input
39-
pointer-events: inherit
40-
4137
&__content.v-menu__content
4238
border-radius: 0
4339

packages/vuetify/src/components/VInput/VInput.sass

+2-5
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@
111111
&--dense > .v-input__control > .v-input__slot
112112
margin-bottom: $input-dense-slot-margin-bottom
113113

114-
&--is-disabled:not(.v-input--is-readonly)
115-
pointer-events: none
116-
117114
&--is-loading > .v-input__control > .v-input__slot
118115
&:before,
119116
&:after
@@ -128,8 +125,8 @@
128125

129126
&--hide-spin-buttons
130127
input::-webkit-outer-spin-button,
131-
input::-webkit-inner-spin-button
128+
input::-webkit-inner-spin-button
132129
-webkit-appearance: none
133130
margin: 0
134-
input[type=number]
131+
input[type=number]
135132
-moz-appearance: textfield

packages/vuetify/src/components/VSelect/VSelect.sass

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
input
6464
flex: 1 1 // Doesn't resize on IE11 with 3rd param
6565
min-width: 0
66-
pointer-events: none
6766
position: relative
6867
6968
&:not(.v-text-field--single-line) input
@@ -118,6 +117,9 @@
118117
.v-select__selections
119118
flex-direction: row-reverse
120119
120+
&.v-input--is-disabled:not(.v-input--is-readonly):not(.v-autocomplete)
121+
pointer-events: none
122+
121123
&__selections
122124
align-items: center
123125
display: flex

packages/vuetify/src/styles/components/_selection-controls.sass

+3
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@
109109
.v-icon
110110
color: inherit
111111

112+
&.v-input--is-disabled:not(.v-input--is-readonly)
113+
pointer-events: none
114+
112115
.v-input--selection-controls__input:hover
113116
.v-input--selection-controls__ripple:before
114117
background: currentColor

0 commit comments

Comments
 (0)