-
30 Jun 2012 11:00 AM #1
Combobox filters not being removed on destroy
Combobox filters not being removed on destroy
I am seeing that if I create a combobox in a window, filter the combobox by typing into the field then close the window, open a new instance of that window the previous filter from the first window is still applied to the store. Is this expected behavior? I would have expected that on destroy the combobox would have removed any filters it had on the store to avoid this.
-
30 Jun 2012 11:10 AM #2
This override makes the combobox act as I would have expected.
The addition is just this.clearFilter() which removes the filter applied by this combobox when the combo is destroyed. Would love to hear comments about this though.Code:Ext.override(Ext.form.field.ComboBox, { onDestroy: function() { this.clearFilter(); this.bindStore(null); this.callParent(); } });
-
30 Jun 2012 11:57 AM #3
Good point. It should probably release its influence on the Store on destroy.
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
2 Jul 2012 4:43 AM #4
thanks Animal, that was also my thoughts. I'll leave the override in until I see any official release which makes it unnecessary.
Will a bug be created for this that I can track?
This duplicates another bug already reported in our system:
EXTJSIV-6694


Reply With Quote