-
27 Mar 2013 6:19 AM #1
Lister Bug in Navigation View ST 2.2b1
Lister Bug in Navigation View ST 2.2b1
Bug: show event is fired on item that is poping.
Expected: the show event shouldn't fire.
Steps to reproduce:- create a navigation view
- push a view
- show event is fired as expected
- close the detailcard with the backbutton
- show event is fired again. NOT EXPECTED
p.s.
repo deleted. The testcase below is simpler and shows the same bug.
Post updated.
-
27 Mar 2013 6:25 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 434
A test case needs to be much simpler like this:
Code:var i = 0; function createCard() { i++; return { title : 'New Card ' + i, html : 'new card ' + i, listeners : { show : function () { console.log('show', i); }, hide : function () { console.log('hide', i); } } }; } Ext.Viewport.add({ xtype : 'navigationview', items : [ { title : 'Home', items : [ { xtype : 'button', text : 'Push View', handler : function (button) { var navView = button.up('navigationview'), card = createCard(); navView.push(card); } } ] } ] });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
27 Mar 2013 6:40 AM #3
I apologize,
your simple testcase shows the same error, and the hide event is fired on push as well.
Best Regards,
Martin Heß
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote