Browse Source
fix: Avoid selecting the placeholder of input control on Chrome browser, keep consistent of selection behavior with Firefox browser (#32639)
pull/32648/head
Chang Wei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
components/style/mixins/compatibility.less
|
|
@ -15,4 +15,10 @@ |
|
|
|
&:placeholder-shown { |
|
|
|
text-overflow: ellipsis; |
|
|
|
} |
|
|
|
|
|
|
|
// Chrome |
|
|
|
/* stylelint-disable-next-line selector-no-vendor-prefix */ |
|
|
|
&::-webkit-input-placeholder { |
|
|
|
user-select: none; |
|
|
|
} |
|
|
|
} |
|
|
|