-
30 Nov 2010 2:39 AM #1
[OPEN-1410] Ext.form.ComboBox and the expand() method
[OPEN-1410] Ext.form.ComboBox and the expand() method
I was just wondering why in the expand method on an Ext.form.ComboBox there is a check to ensure the combo has focus before actually expanding...
I can't see any reason why the combo would have to have focus before expanding, and it works without having focus if you remove the check. I think expanding the combo is a nice way of letting the user know that data has been loaded into the store without actually setting a value. Its obviously straightforward to focus the field, but I don't want to steal the focus I just want to inform the user that data has been loaded.Code:expand : function(){ if(this.isExpanded() || !this.hasFocus){ return; } //....
Anyone have any thoughts on this?
-
30 Nov 2010 4:12 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
expand() should never be called directly. Call onTriggerClick() instead.
-
30 Nov 2010 4:27 AM #3
This makes sense looking at the code, but why is expand() a public method in the API?
-
30 Nov 2010 4:40 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Good question. Maybe we should move this to the Bugs section to let the developers decide?
-
30 Nov 2010 4:41 AM #5
Yeah if you could move it that would be great. Its just a little confusing looking at the API docs, I've previously always used expand() and that's obviously wrong.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-759][3.2beta]Ext.ux.form.ItemSelector is still missing setValue method!
By Stju in forum Ext 3.x: BugsReplies: 2Last Post: 21 Apr 2011, 12:50 AM -
[OPEN-1404] Doc Bug: Class Ext.form.ComboBox missing findRecord method documentation
By JacobGu in forum Ext 3.x: BugsReplies: 0Last Post: 3 Dec 2010, 4:50 AM -
problem of combobox's expand() method
By fanzhongkai in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 27 Jul 2009, 11:31 PM -
[2.x][OPEN] Resetting of Ext.form.Combobox with valueField
By dj in forum Ext 2.x: BugsReplies: 1Last Post: 16 Mar 2008, 9:53 PM -
ComboBox expand method
By rrglover in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 21 Jan 2008, 12:13 AM



Reply With Quote