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
parent
commit
a09e1ad921
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      components/style/mixins/compatibility.less

6
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;
}
}

Loading…
Cancel
Save