[patch][cla]dtl fails to update checkbox checked state
load this test case:
<html>
<head>
<script type="text/javascript" src="../../../dojo/dojo.js"
djConfig="isDebug: true, parseOnLoad: true"</script>
<script type="text/javascript">
dojo.require("dojox.dtl._HtmlTemplated");
dojo.declare("Fruit", [dijit._Widget, dojox.dtl._HtmlTemplated], {
onClick: function(e){
this.checked=!this.checked;
this.render();
},
templateString: '<div><input type="checkbox" checked="{{ checked}}"><input type="button" dojoattachevent="onclick:onClick" value="change checked state"></div>'
});
dojo.require("dojo.parser");
</script>
</head>
<body class="tundra">
<div dojoType="Fruit" id="dtl"></div>
</body>
</html>
click on the button does not actually change the checked state of the checkbox
the reason of this bug is dojo.attr(checkbox,'checked','false') does not work, it has to be: dojo.attr(checkbox,'checked',false) (without the quote around false)
Change History (8)
Owner: |
changed from Adam Peller to Neil Roberts
|
Summary: |
dtl fails to update checkbox checked state →
[patch][cla]dtl fails to update checkbox checked state
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
Milestone: |
tbd →
1.3
|
Resolution: |
fixed
|
Status: |
closed →
reopened
|
Component: |
Dojox →
DojoX DTL
|
Resolution: |
→ fixed
|
Status: |
reopened →
closed
|
(In [15985]) Fixes #8204. Enforce boolean for setter attributes !strict