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
slot.props(slot is a VNode basically) to contain normalized(naming-wise) prop key and value pairs.
What is actually happening?
It's handled correctly while rendering but it's not the case with direct access. The prop key stays the same as how it was passed initially.
I have changed panel.componentOptions.propsData.imgSrc to panel.props.imgSrc (panel is a child in the default slot) while migrating to Vue 3. I have spotted that it was not working correctly. After doing some tests and debugging, I saw that it's either panel.props.imgSrc or panel.props['img-src']. After further work, I created a reproduction and this issue.
The text was updated successfully, but these errors were encountered:
VNode props are never guaranteed to be normalized, this is not documented behavior. The normalization happens only when the component is receiving the props.
Version
3.0.0-rc.5
Reproduction link
https://codepen.io/yusufkandemir/pen/abdeYVN?editors=0010
Steps to reproduce
Just run the reproduction.
What is expected?
slot.props
(slot is a VNode basically) to contain normalized(naming-wise) prop key and value pairs.What is actually happening?
It's handled correctly while rendering but it's not the case with direct access. The prop key stays the same as how it was passed initially.
I have changed
panel.componentOptions.propsData.imgSrc
topanel.props.imgSrc
(panel
is a child in the default slot) while migrating to Vue 3. I have spotted that it was not working correctly. After doing some tests and debugging, I saw that it's eitherpanel.props.imgSrc
orpanel.props['img-src']
. After further work, I created a reproduction and this issue.The text was updated successfully, but these errors were encountered: