fix: Avoid selecting the placeholder of input control on Chrome browser, keep consistent of selection behavior with Firefox browser (#32639)

This commit is contained in:
Chang Wei 2021-10-26 13:33:21 +08:00 committed by GitHub
parent 0e7d82bdb4
commit a09e1ad921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,4 +15,10 @@
&:placeholder-shown {
text-overflow: ellipsis;
}
// Chrome
/* stylelint-disable-next-line selector-no-vendor-prefix */
&::-webkit-input-placeholder {
user-select: none;
}
}