PDA

View Full Version : [FIXED-510][3.1.1-rc] FormPanel with "id" named item



SharePat
1 Feb 2010, 12:08 PM
Hello,

I'm testing a FormPanel and got a bug on window close, I think it is some naming collision.
Reduced my code to the core problem (to be tested in an Examples subdirectory):


<html>
<link type="text/css" rel="stylesheet" href="../../resources/css/ext-all.css">
<script type="text/javascript" src="../../adapter/ext/ext-base-debug.js"></script>
<script type="text/javascript" src="../../ext-all-debug.js"></script>
<script>

Ext.onReady(function(){
var fp = new Ext.form.FormPanel({
renderTo: 'f',
items: [{ fieldLabel: 'ID',
xtype: 'textfield',
name:'id'
}
]
});
});

</script>
<body>
<div id="f"></div>
</body>
</html>

Replace the name value 'id' with anything else and everything works fine...
I didn't have this problem in Ext 2.2

Thanks in advance for any help.

Jamie Avins
1 Feb 2010, 1:07 PM
I've seen this one myself, this test case no longer gives an error in 3.1.1 as the unload process has been cleaned up.

SharePat
8 Feb 2010, 7:34 AM
I just tested with [3.1.1-rc] and I'm still facing the same error...

Regards

mystix
8 Feb 2010, 8:43 AM
marking this [REOPENED] for review.

Jamie Avins
8 Feb 2010, 12:17 PM
Fixed in ext-core 138.