PDA

View Full Version : [FIXED] Error when opening combo child class with a configured ViewController



jorgemanrubia
6 May 2014, 2:47 PM
Hi,

When defining a combo that extends Ext.form.ComboBox, and then creating an instance with it using a ViewController, the combo fails to open. It complains about not locating 'onTriggerClick' on the view controller.

Uncaught Error: No method named "onTriggerClick" on Test.MyController

You can open the combo by using the keyboard (UP key) but it will trigger this error when clicking the combo open button.

Here it is a fiddle reproducing the issue:

https://fiddle.sencha.com/#fiddle/5kv

A workaround is adding this method to the ViewController:

onTriggerClick: function(){
this.getView().expand();
},


Regards

evant
6 May 2014, 3:14 PM
We have this one already fixed up for the next release. Thanks for the post.