javascript - Sencha Touch 2: itemtap on IE not targeting divs -


i'm working on cordova hybrid app , facing issues on windows 8.1 sencha touch 2. got divs on listitem subelements. defined tap listener. works fine android , ios, doesn't work on win8.1 internet explorer. i'm getting above lying listitem-element not clicked div-containers.

this simplified example:

view:

ext.define( 'app.view.mydataview', {  xtype: 'mydataview', extend:  ext.dataview.list ,  config: {      inline: false,     title: "mytitle",      scrolltotoponrefresh: false,      cls: 'mydataview',     itemcls: 'mydataviewitem',     pressedcls: 'mydataviewitempressed',     grouped: true,      listeners: {         tap: {             element: 'element',             //delegate: '.something',              fn: function (e)             {                 console.log(e.target.classname)             }         }     },     deferemptytext: false,     infinite: true,      variableheights: true,     itemtpl: new ext.xtemplate(         [                              '<div class="red" style="background-color:red;width:50%">',                 'red',                 '<div class="black" style="background-color:black;width:80%">',                     '<div class="blue" style="background-color:blue;width:30%">blue</div>',                 'black</div>',             '</div>'         ].join( '' ),         {             compiled: true,             getinteractable: function() {},             //some member functions here...          }     ) } }); 

e.target on tap listener give me following:

<div class="x-unsized x-list-item workinghoursdataviewitem x-has-height x-list-item-tpl" id="ext-simplelistitem-85" style="height: 42px !important; min-height: 42px !important; transform: translate3d(0px, 264px, 0px);">   <div class="x-unsized x-list-disclosure x-item-hidden" id="ext-component-233" style="display: none !important;"></div>   <div class="x-innerhtml" id="ext-element-815">         <div class="red" style="width: 50%; background-color: red;">               red            <div class="black" style="width: 80%; background-color:black;">                <div class="blue" style="width: 30%; background-color:blue;">                           blue                           </div>                      </div>                     black                   </div>              </div>               </div>            </div>         </div>      </div>   </div> 

i browsed alot through event, e, target there no reference clicked div container :/

thanks in advance!

//edit: simplified example // related grouped:true -> if comment out works expected

fixed - if grouped: true set, caused unexpected results on ie.

workaround: after showing view: list.updategrouped()


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -