-
30 Mar 2007 9:46 AM #1
Field dom id not being set correctly? (alpha 3 rev 4)
Field dom id not being set correctly? (alpha 3 rev 4)
Line 48 of Field.js reads
I think that should be "&&"Code:if(this.id & !cfg.id){
Thanks,
Eric
-
30 Mar 2007 10:12 AM #2
Hmmm, my confusion goes deeper,
If I create a form field w/ an id, subsequent form fields created without ids get the same id.
in the Ext.form.field.onRender function
Please correct me if I'm wrong:Code:var cfg = typeof this.autoCreate == "object" ? this.autoCreate : this.defaultAutoCreate; if(this.id & !cfg.id){ cfg.id = this.id; } if(!cfg.name){ cfg.name = this.name || this.id; } this.el = ct.createChild(cfg);
cfg can be set to this.defaultAutoCreate;
cfg can then be modified, thus modifying this.defaultAutoCreate;
We don't want to modify this.defaultAutoCreate, right?
thanks,
Eric
-
30 Mar 2007 10:50 AM #3
Thanks eric, both of those have been corrected. The defaultAutoCreate line is now:
Code:var cfg = typeof this.autoCreate == "object" ? this.autoCreate : Ext.apply({}, this.defaultAutoCreate);
Similar Threads
-
Am I using Grid.afteredit correctly?
By gordon in forum Ext 2.x: Help & DiscussionReplies: 18Last Post: 5 Aug 2009, 12:05 PM -
Ext JS 3.1 FINAL Available
By jack.slocum in forum Community DiscussionReplies: 120Last Post: 6 Jul 2009, 4:32 PM -
Drag & Drop broken in Safari (Alpha 1 and Alpha 2)
By maerteijn in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 27 Feb 2007, 8:26 AM -
how to use correctly insertBefore::DomHelper with the UM??
By luke83 in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 5 Nov 2006, 7:57 PM -
Empty elements not created correctly by DomHelper.createHtml
By zkim in forum Ext 1.x: BugsReplies: 2Last Post: 5 Nov 2006, 3:29 AM


Reply With Quote