Skip to content
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

feat(jsx): normalize class attribute #942

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from

Conversation

kasperskei
Copy link
Contributor

Class binding like vue.js.

Copy link

stackblitz bot commented Oct 14, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

vercel bot commented Oct 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
reatom ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 16, 2024 0:14am

@@ -303,7 +303,7 @@ it('custom component', setup((ctx, h, hf, mount, parent) => {
const Component = (props: JSX.HTMLAttributes) => <div {...props} />

assert.instance(<Component />, window.HTMLElement)
assert.is(((<Component draggable />) as HTMLElement).draggable, true)
assert.is(((<Component draggable="true" />) as HTMLElement).draggable, true)
Copy link
Contributor Author

@kasperskei kasperskei Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attribute is not boolean. That's why the tests failed.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant