You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
paper-checkbox when set to true, and then set to undefined, shows unexpected behavior -- the checkmark disappears, but the "checked" background stays
Expected outcome
Both checkmark and "checked" background should disappear when checked != true
Actual outcome
paper-checkbox when checked set to undefined (when it previously was set to true), shows blue background without checkmark
Live Demo
Sorry, just want to do a quick report.
Steps to reproduce
Put a paper-checkbox with an attribute set to true:
// scope = {publicProfile:true} <paper-checkbox checked$="{{scope.publicProfile}}"></paper-checkbox>
then set scope to empty to make publicProfile undefined
this.set("scope", {})
you should now see the unexpected behavior.
Do note that using checked$ instead of checked fixes the issue:
<paper-checkbox checked$="{{scope.publicProfile}}">
Browsers Affected
Chrome
Firefox
Safari 9
Safari 8
Safari 7
Edge
IE 11
IE 10
(Haven't tested on other browsers, but same issue should apply)
The text was updated successfully, but these errors were encountered:
Description
paper-checkbox when set to true, and then set to undefined, shows unexpected behavior -- the checkmark disappears, but the "checked" background stays
Expected outcome
Both checkmark and "checked" background should disappear when checked != true
Actual outcome
paper-checkbox when checked set to undefined (when it previously was set to true), shows blue background without checkmark
Live Demo
Sorry, just want to do a quick report.
Steps to reproduce
Put a paper-checkbox with an attribute set to true:
// scope = {publicProfile:true}
<paper-checkbox checked$="{{scope.publicProfile}}"></paper-checkbox>
then set scope to empty to make publicProfile undefined
this.set("scope", {})
you should now see the unexpected behavior.
Do note that using checked$ instead of checked fixes the issue:
<paper-checkbox checked$="{{scope.publicProfile}}">
Browsers Affected
(Haven't tested on other browsers, but same issue should apply)
The text was updated successfully, but these errors were encountered: