Skip to content

Commit af9cb5f

Browse files
authored
fix: replace :-moz-placeholder-shown with :-moz-placeholder (#1532)
* fix: add blocker `-moz` prefix for `:placeholder-shown` * docs: add `:-moz-placeholder`
1 parent dae6eb4 commit af9cb5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/hacks/placeholder-shown.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ class PlaceholderShown extends Selector {
55
* Return different selectors depend on prefix
66
*/
77
prefixed(prefix) {
8-
if (prefix === '-ms-') {
8+
if (prefix === '-moz-') {
9+
return ':-moz-placeholder'
10+
} else if (prefix === '-ms-') {
911
return ':-ms-input-placeholder'
1012
}
1113
return `:${prefix}placeholder-shown`

0 commit comments

Comments
 (0)