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

fix(runtime-core): unable to set object to dom props #1093

Closed
wants to merge 1 commit into from

Conversation

ycmjason
Copy link
Contributor

@ycmjason ycmjason commented May 1, 2020

This PR is an alternative to #1092. #1092 probably is quite expensive to do, since a new element is created per prop just to check if that prop is string assignable.

This PR removes casting nullish values to '' for props which I personally think will make more sense because user can expect default browser behaviour for setting <element>.prop.

fix #1049

- Remove casting nullish values to ''
@blake-newman
Copy link
Member

To me this makes the most sense, the null casting to an empty string seems to be a convenience layer only.

However, this casting can be done in userland when desired, which firstly fixes #1049 and as the alternatives are computational heavy we can remove from the framework.

@yyx990803 yyx990803 closed this in 20bc7ba May 1, 2020
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.

.prop is casting null-ish values to empty strings
2 participants