Skip to content

Commit

Permalink
fix(VInput): allow text selection in disabled inputs (#14465)
Browse files Browse the repository at this point in the history
fixes #14238
  • Loading branch information
lentyaevpk committed Jun 15, 2022
1 parent 3115798 commit 760490d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
Expand Up @@ -34,10 +34,6 @@
.v-select__slot > input
margin-top: $autocomplete-dense-enclosed-input-margin-top

&:not(.v-input--is-disabled).v-select.v-text-field
input
pointer-events: inherit

&__content.v-menu__content
border-radius: 0

Expand Down
7 changes: 2 additions & 5 deletions packages/vuetify/src/components/VInput/VInput.sass
Expand Up @@ -111,9 +111,6 @@
&--dense > .v-input__control > .v-input__slot
margin-bottom: $input-dense-slot-margin-bottom

&--is-disabled:not(.v-input--is-readonly)
pointer-events: none

&--is-loading > .v-input__control > .v-input__slot
&:before,
&:after
Expand All @@ -128,8 +125,8 @@

&--hide-spin-buttons
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button
input::-webkit-inner-spin-button
-webkit-appearance: none
margin: 0
input[type=number]
input[type=number]
-moz-appearance: textfield
4 changes: 3 additions & 1 deletion packages/vuetify/src/components/VSelect/VSelect.sass
Expand Up @@ -63,7 +63,6 @@
input
flex: 1 1 // Doesn't resize on IE11 with 3rd param
min-width: 0
pointer-events: none
position: relative
&:not(.v-text-field--single-line) input
Expand Down Expand Up @@ -118,6 +117,9 @@
.v-select__selections
flex-direction: row-reverse
&.v-input--is-disabled:not(.v-input--is-readonly):not(.v-autocomplete)
pointer-events: none
&__selections
align-items: center
display: flex
Expand Down
Expand Up @@ -109,6 +109,9 @@
.v-icon
color: inherit

&.v-input--is-disabled:not(.v-input--is-readonly)
pointer-events: none

.v-input--selection-controls__input:hover
.v-input--selection-controls__ripple:before
background: currentColor
Expand Down

0 comments on commit 760490d

Please sign in to comment.