Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VInput): allow text selection in disabled inputs #14465

Merged
merged 4 commits into from Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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