-
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
[0.8] Binding to "id" is not working #1426
Comments
Interesting case. I managed to get this working by using attribute binding for id ( (See the "Some attributes are special" note in https://www.polymer-project.org/0.8/docs/devguide/data-binding.html#property-binding -- that's the doc that appears to be wrong, because it advises using for$ (which doesn't seem to work) rather than html-for (which does). I also initialized the value for uuid in the properties object. I'm not sure whether that's required, but it seemed a little cleaner. Note that binding to
Working version using data binding on http://plnkr.co/edit/MtYDzf6IgI1P4kVULMmZ?p=preview Using composition instead: http://plnkr.co/edit/j31xhq802EGT9I0CPqzj?p=preview (BTW, I'd never tried howjs before. It went crazy when I tried to open devtools, so I moved the sample to Plunker.) |
Thanks arthurevans. That's interesting indeed. I haven't seen "html-for" before. Is that a Polymer's attribute or HTML's ? I have tried google but couldn't find it online. Could you ping me the Doc for it ? Anyway, it'd be great to have for$ binding fixed. |
https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement Because of the way we map attribute names to property names, you can bind the https://www.polymer-project.org/0.8/docs/devguide/properties.html#property-name-mapping |
Fixed in 12513df. |
in Polymer 0.8 RC4,
Binding to "id" (input) and "for" (label) is not working:
Please check the below example: (click HTML tab)
http://howjs.com/sTrT/2
Thanks.
The text was updated successfully, but these errors were encountered: