-
Notifications
You must be signed in to change notification settings - Fork 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
<textarea> welcomes user with 'undefined' text value (only for object subproperties) #4630
Comments
For native HTML elements, you should use |
@TimvdLippe Using If this was static HTML, you'd pass the value |
@slawomir-brzezinski-at-interxion Oh sorry I missed that. Yeah seems like a bug. |
Thanks for the issue. Interesting that it's the first bug report we've had of this, even though Polymer 1.0 would have suffered from the same issue. At any rate, we avoid this for Since we've already got precedent for special-casing input, I think we'd just add an |
Special-case undefined textarea.value same as input. Fixes #4630
Thanks for fixing this guys. |
Description
An
undefined
value, when binding to<textarea>
, is treated as 'undefined' text, but only if it appears in an object subproperty.Interestingly
null
gets treated just fine.undefined
in a flat property is also just fine.<input type="text">
doesn't have the issue.See the live demo.
Live Demo
http://jsbin.com/xukejamegi/edit?html,output
Expected Results
It should work like
<input type="text">
Actual Results
The user value is an 'undefined' text.
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: