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
Then why we can default boolean with true without any warnings? So we can use <Comp /> and it will use it's inner default to true, but once we apply $props it inverts anything.
I get that Vue wants to mimic HTML attributes behaviour, but then I expect any kind of restriction to not be able to default boolean props with true in the component.
Uh oh!
There was an error while loading. Please reload this page.
Vue version
3.5.16
Link to minimal reproduction
https://play.vuejs.org/#eNqNU9tu00AQ/ZVhhViQgqOqwENwUlFUCXiACpB4sYRce5xuWe+udtchkeV/Z2ZDUrdNL0/2XM5czpztxQfnslWHYibyUHnlIgSMnVsURrXO+ggfbet++dI59NB424LMpiMfg2Vh8ukWTTgyIrZOlxHJAsjHFabkyqejuJiIGCprGrXMroI1NEjPqEJUBFMa/TcXlTWhEDNIEY6VWtu/X5Iv+g4nO391idWfA/6rsGZfIc49BvQrLMQ+Fku/xLgNn/34imv63wdbW3eash8IfsdgdcczbtNOO1PT2KO8NO3nRKcyy5/hbB3RhN1SPChnDim/EEQoM3bf6tfjHmdvEq4wA7HImEOXBF2a5ZxwVOb6qnHjEPp03HNvXYBhf1wOBfmeD0l3CZHSoooaYQ6S8+UELqzVZPLkBJxDjY0ymAqla6e/xctXVOQhYVweLT7hZgJ9nxoMwzM45crR1uUGVKCt+9TqBCT3kjAD2ZQ6oByGfErwu2K6Jc2nscGgG+JOqk4U/M94MlU1btvR3ZiwkSnvZQpe3ASezCBET1IZHufQLfp+BGVe+PGSUnZPD1avL5SpaennjrsV4vAr5F2yGIgxXKedlYnom7LC0e5Jhula+yFpQEiKIA9/sDTkYkn+XqFnmVPJ4+xtdvRODP8ACEOEBA==
Steps to reproduce
I create
Comp
with props of typeCompProps
.I create
CompWrapper
with props of typeCompProps & { description?: string }
and use$props
in its template to pass props through it.I render App
What is expected?
title
defaulted toComp
,bool
defaulted totrue
What is actually happening?
I see
title
defaulted toComp
(expected),bool
defaulted tofalse
(bug 🐞)System Info
Any additional comments?
If I don't use
$props
thenbool
defaults totrue
(expected). So it's definitely an issue with$props
inself.The text was updated successfully, but these errors were encountered: