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

undefined style property throws error #368

Closed
2 tasks done
xorraxraxret opened this issue Jan 12, 2025 · 1 comment · Fixed by #369
Closed
2 tasks done

undefined style property throws error #368

xorraxraxret opened this issue Jan 12, 2025 · 1 comment · Fixed by #369

Comments

@xorraxraxret
Copy link

xorraxraxret commented Jan 12, 2025

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Versions

Latest

Description

<div style={undefined} />

throws an error when it tries to use Object.keys() on the undefined value, despite "undefined" being an allowed type.

Expected Behavior

The style property should be excluded.

@arthurfiorette
Copy link
Member

@kitajs/html@4.2.7

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 a pull request may close this issue.

2 participants