lundi 24 mars 2014

A huge bug in a grouped treepanel - itemdblclick passes the wrong record!!!

Ext version tested:

  • Ext 4.2.1 / 4.2.0


Browser versions tested against:

  • ALL


Description:

  • itemdblclick event on a treepanel with grouping feature active, passes the WRONG RECORD in some cases!!!


Steps to reproduce the problem:

  • 1. Open this fiddle and use 4.2.1 for the framework and activate the JS console:

    http://ift.tt/ORxNtJ

  • 2. Double click the first record (named Kevin Malone) - the console will show you the right record

  • 3. Collapse the first group (the group which holds Kevin Malone, department: Accounting)

  • 4. Now - doubleclick the record on the second group (named Michael Scott) and look at the console again

  • 5. Now the passed record contains Angela Martin, which is the second one in the previos group!!!:(


You can laugh on me, but it performs like the dblclick event is using the mouse coordinates to retrieve the record???



Am i right?



The fiddle works correct when using 4.2.0.



The code is copied directly from the grouping feature example in sencha docs with minor changes made to illustrate the issue




Aucun commentaire:

Enregistrer un commentaire