File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,13 @@ function shouldSetAsProp(
79
79
return false
80
80
}
81
81
82
- // spellcheck and draggable are numerated attrs, however their
83
- // corresponding DOM properties are actually booleans - this leads to
84
- // setting it with a string "false" value leading it to be coerced to
85
- // `true`, so we need to always treat them as attributes.
82
+ // these are enumerated attrs, however their corresponding DOM properties
83
+ // are actually booleans - this leads to setting it with a string "false"
84
+ // value leading it to be coerced to `true`, so we need to always treat
85
+ // them as attributes.
86
86
// Note that `contentEditable` doesn't have this problem: its DOM
87
87
// property is also enumerated string values.
88
- if ( key === 'spellcheck' || key === 'draggable' ) {
88
+ if ( key === 'spellcheck' || key === 'draggable' || key === 'translate' ) {
89
89
return false
90
90
}
91
91
@@ -105,12 +105,6 @@ function shouldSetAsProp(
105
105
return false
106
106
}
107
107
108
- // #5462 translate is an enumerated attr, however its
109
- // corresponding DOM property are actually boolean.
110
- if ( key === 'translate' ) {
111
- return false
112
- }
113
-
114
108
// native onclick with string value, must be set as attribute
115
109
if ( nativeOnRE . test ( key ) && isString ( value ) ) {
116
110
return false
You can’t perform that action at this time.
0 commit comments