If I create a published property with a default value and reflect: true, the property isn't reflected as an attribute until I change the property. Test case here:
http://jsbin.com/sogon/7/edit
The text here should show up in red (and the should show up as in devtools), but it doesn't.
If you use devtools to change the highlight value to 'red', nothing happens -- apparently we detect that the value hasn't changed and don't serialize it.
If you change it to another value then back to red, it works.
Currently, you can work around this by just setting reflect: true in the publish block and setting the default value in the ready callback. But it seems like the default value should reflect correctly.
If I create a published property with a default value and reflect: true, the property isn't reflected as an attribute until I change the property. Test case here:
http://jsbin.com/sogon/7/edit
The text here should show up in red (and the should show up as in devtools), but it doesn't.
If you use devtools to change the highlight value to 'red', nothing happens -- apparently we detect that the value hasn't changed and don't serialize it.
If you change it to another value then back to red, it works.
Currently, you can work around this by just setting
reflect: truein the publish block and setting the default value in thereadycallback. But it seems like the default value should reflect correctly.