-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Type of VNodeData style property should accept string values #9727
Comments
when do you have a string property in style? Are you creating or modifying existing vnodes (they are read-only) |
When I'm creating them. The problems happens exactly when I'm creating components with |
Ok, I was confused because you directly used the type on a variable instead of passing the object with not type to |
Sorry, my example may be bad. I also found on sources the function where Vue handle vue/src/platforms/web/util/style.js Lines 29 to 34 in 653c74e
|
It was good already, but thanks for sharing :) |
Version
2.6.9
Reproduction link
https://codesandbox.io/s/pkpkn7ljym
Steps to reproduce
Just try to use a
string
value forVNodeData
'sstyle
property.What is expected?
Vue handle
string
values forstyle
, so types should allow the same.What is actually happening?
Type of
VNodeData
'sstyle
don't acceptstring
values.@flow type declarations has same issue.
The text was updated successfully, but these errors were encountered: