You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/migration/attribute-coercion.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ The absence of an enumerated attribute and `attr="false"` may produce different
85
85
|`draggable`|`draggable`→`false`|
86
86
|`spellcheck`|`spellcheck`→`true`|
87
87
88
-
To keep the old behavior work, and as we will be coercing `false` to `'false'`, in 3.x Vue developers need to make `v-bind`expression resolve to `false` or `'false'`for `contenteditable` and `spellcheck`.
88
+
Since we no longer coerce `null` to `'false'` for “enumerated properties” in 3.x, in the case of `contenteditable` and `spellcheck`, developers will need to change those `v-bind`expressions that used to resolve to `null` to resolve to `false` or `'false'`in order to maintain the same behavior as 2.x.
89
89
90
90
In 2.x, invalid values were coerced to `'true'` for enumerated attributes. This was usually unintended and unlikely to be relied upon on a large scale. In 3.x `true` or `'true'` should be explicitly specified.
91
91
@@ -107,7 +107,7 @@ In 3.x, `null` or `undefined` should be used to explicitly remove an attribute.
107
107
<tbody>
108
108
<tr>
109
109
<td rowspan="3">2.x “Enumerated attrs”<br><small>i.e. <code>contenteditable</code>, <code>draggable</code> and <code>spellcheck</code>.</small></td>
0 commit comments