【custom-element】wrong props casting when rendering async custom elements in SFC #11081
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
has workaround
A workaround has been found to avoid the problem
scope: custom elements
Vue version
latest
Link to minimal reproduction
https://play.vuejs.org/#eNqNVG1v2jAQ/iuWNSlBCuHD9om+SF3VStuHrdr6rUEqSw5I69iR7VAQyn/fnU0SQ1lZhBRz99zLc74nO35T1+m6AT7llybXZW2vM1lWtdKW7dgqYRoWrGULrSoWIS4KvPdK9a50slAqfTHozxtjVXUnoAJpTVrAopQQR9V2DGL8VtrVOF+VohgbuxVgxnOzlXmUULZRJmHjkmPQvBFYJJNs/xiwTR2PAgtjuZLGMgsby66o0ziyYOzjJsJMA0pjpJZhLnooKrS0w582Gc4aZAF6yuLcbhI2T9ifhH1yvYzY1fVh0n2hVRwV5RopHVVU8laU+SvmcqE+S7rvPspXc7mk+QYtJewJk52b3FEZxtwU7mXUVaIxKQGpUEs/oWgUMAxicHLTsK93KA8yZtrhDd14iGhHs9AQXAQOGH+Xk37NeMKtwd4W5RI3R0ncQUcl47mq6lKA/lnbEnvP+LQjmfG5EOrtu7NZ3cC+RYxZQf56wv5iNmTL+IMGA3oNGe99dq6XYL377vcP2ojBWamiEYj+wPkLcK4N9ehhXxtZYNsBznX7zSmmlMtHc7exIE1HiholpF+4jKPAbj+gPrT7Of3i4nCkOEUvPRxfL00vuttQiQmp2dtvaHGokJLo6DTsymf8ItO9DL2+SOdXp1LGBGUnk8Z+83Ye0UvjAQuVBlK8CiXWEPd+xmqtatyrp255k34lZ8mA8quPsGeUGBLNlVCoTg3FBWufD5Due+Gy4kejN/uPRqcG7x68eBH92SufdD8aeJyUOekUYSgZ6jeZnUzY7q0tag8Pk4lPiu+z1AnzP8Qd7pg2Gf/Jmpy+RTq9Y4zGIcUZ2p71QcKW3sEwePsXCXwAHw==
Steps to reproduce
What is expected?
Whether it is a custom element that is asynchronous or not, props behavior should be consistent
What is actually happening?
Async custom element props are incorrectly parsed as DOM attributes.
System Info
Any additional comments?
Repo snap
We can use the prop modifier to force conversion to DOM property to circumvent the problem
The text was updated successfully, but these errors were encountered: