-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BUGFIX beta] Undefined should not set an attribute. #10687
Conversation
@mixonic - r? |
Can you add a few assertions that assert that going from not-null/undefined to null/undefined removes the attribute? |
@mmun - Great point! I'm also going to add some tests that confirm this does not apply to |
bf91ab5
to
4ca66c1
Compare
@mmun - I have changed around the implementation a bit, and added tests as you suggested. As you guessed the attribute is not removed when moving from an existing value to a Tracking this down, its basically because we are just calling |
placeholder used to be set via an attribute. I'm unsure about a generic way to make property things (value, placeholder) act like attributes. The logic from |
I originally had it in normal AttrNode, but assumed you didn't want it to apply in non-attributeBinding scenarios. I will move the change in logic back into AttrNode... The fix here to ensure that placeholder is not set if undefined should likely land before 1.11.0 is released. I still have the general concern (as does @mmun based his comment/question above), but that seems like a larger issue and not isolated to this PR. I'll update to get this passing shortly. |
4ca66c1
to
7681c69
Compare
[BUGFIX beta] Undefined should not set an attribute.
Thanks sir. |
Fixes #10595.