PDA

View Full Version : [2.2][CLOSED] Checkbox not checkable if renderTo a container



geoffrey.mcgill
19 Aug 2008, 2:15 AM
If a basic Checkbox is renderTo'd a container <div>, clicking on the actual "checkbox" does not check/uncheck.

Clicking just to the left of the checkbox, within the label space will check/uncheck.

The 'check' event is fired when clicking on checkbox.

Same behaviour in IE7 + FF3.

Example


<script type="text/javascript">
Ext.onReady(function() {
var checkbox1 = new Ext.form.Checkbox({
renderTo: "container",
autoShow: true // required, see http://extjs.com/forum/showthread.php?t=44566
});
});
</script>

<div id="container"></div>

Condor
19 Aug 2008, 2:40 AM
Your current Ext JS 2.2 setup is incorrect.

Please read the comment I made for the referenced post (http://extjs.com/forum/showthread.php?t=44566).

geoffrey.mcgill
19 Aug 2008, 3:37 AM
Fixed.

See http://extjs.com/forum/showthread.php?p=211455#post211455