PDA

View Full Version : [2.0a1][SOLVED] Rendered SplitButton causes exception when disabled



thorasmund
29 Sep 2007, 10:59 PM
Ext version: 2.0-alpha1
ext-base.js: 2.0-alpha1
ext-all.js: 2.0-alpha1
OS: Windows XP
Browser: Firefox 2.0.0.7


Creating a splitbutton and rendering it to a form element causes an exception if disabled is set to true. A normal button does not cause any exception.

The exception thrown is:


An attempt was made to create or change an object in a way which is incorrect with regard to namespaces" code: "14
http://xtempo/ext/ext-all.js
Line 14
Example:



<div id="buttonContainer">
</div>

<script class="javascript">
Ext.onReady(function(){
var mySplitBtn = new Ext.SplitButton({
renderTo: 'buttonContainer',
text: 'Split me',
disabled: true
});
});
</script>

thorasmund
29 Sep 2007, 11:24 PM
If I use the dbug version of the library the error is in line 3745.

jsakalos
30 Sep 2007, 11:52 AM
Confirmed. If disabled:true there is the mentioned error, if disabled:false/undefined no error is produced.

I'm notifying Jack on this.

bearmonger
14 Oct 2007, 7:10 AM
This happens for me when I try to change the disabled status dynamically - not just when it is first rendered.

Using Ext 2.0 beta 1.

jsakalos
14 Oct 2007, 12:24 PM
We will take a look at it.

jack.slocum
14 Oct 2007, 9:47 PM
This should be fixed in SVN.