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
* Reword absent Boolean prop customization note
Reword sentence about customizing the default behaviour of boolean props. Previous sentence ends up communicating that the built in behaviour is not desirable, which one would assume is not the case or it would not have been built in.
* Boolean prop customization note punctuation fix
Co-authored-by: Natalia Tepluhina <[email protected]>
Co-authored-by: Natalia Tepluhina <[email protected]>
Copy file name to clipboardExpand all lines: src/guide/components/props.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -484,7 +484,7 @@ Additional details:
484
484
485
485
- An absent optional prop other than `Boolean` will have `undefined` value.
486
486
487
-
- The `Boolean` absent props will be cast to `false`. You should set a `default`value for it in order to get desired behavior.
487
+
- The `Boolean` absent props will be cast to `false`. You can change this by setting a `default` for it — i.e.: `default: undefined`to behave as a non-Boolean prop.
488
488
489
489
- If a `default` value is specified, it will be used if the resolved prop value is `undefined` - this includes both when the prop is absent, or an explicit `undefined` value is passed.
0 commit comments