-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support .prop
for DOM properties
#1048
Comments
Attributes are always text, that's how HTML works. But if you want to pass something other than text, setting it as a DOM property instead of an attribute using |
Ohh sweet. Never knew about |
Opps, looks like it is not working yet. I will leave this open. 😄 |
.prop
for DOM properties
Hmm, it works for me. Is your template coming from HTML/DOM instead of some build step by any chance? In that case the HTML parser will lowercase |
no problems passing the stream |
It failed when I try to set it to |
Sneaky edit: you're right, in Vue 3 there's an error because you can't set |
Got the same error. I believe the error came from https://github.com/vuejs/vue-next/blob/0bb1f67d12b4a7d7ae2fe1d94883333bf736aa13/packages/runtime-dom/src/modules/props.ts#L35 I think it is trying to set the Can't seem to find any logic around the Edit: It might be that Vue 3 has not deal with |
Yup that's it, good catch! Instead of setting For now you could add a |
Here's a repro btw, might want to add it to the issue description: |
nice one thanks @jonaskuske |
closing for #1049 |
What problem does this feature solve?
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: