We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.0-alpha.1
https://codesandbox.io/s/zen-field-ewni3
vue 2 for comparison - https://jsfiddle.net/jfrhgbma/
import { h, createApp } from "vue"; function Button(props, { attrs }) { console.log({ props, attrs }); } const App = { setup() { return () => [ h(Button, { "data-id": 1, "aria-label": "Close", }) ]; } }; createApp().mount(App, "#root");
Button's props should be in camelCase and attrs in kebab-case
Without explicit props declaration Button attrs keys are converted to camelCase.
attrs
The text was updated successfully, but these errors were encountered:
I think this would be fine if they were converted back to kebab-case in the DOM, but they get lowercased instead.
Sorry, something went wrong.
bb6a346
No branches or pull requests
Version
3.0.0-alpha.1
Reproduction link
https://codesandbox.io/s/zen-field-ewni3
vue 2 for comparison - https://jsfiddle.net/jfrhgbma/
Steps to reproduce
What is expected?
Button's props should be in camelCase and attrs in kebab-case
What is actually happening?
Without explicit props declaration Button
attrs
keys are converted to camelCase.The text was updated successfully, but these errors were encountered: