4 Replies Latest reply on Jan 11, 2011 11:38 PM by eirik sand

    Changing Event in Spark List

    franto kormanak Level 1

      I want to use preventDefault in List on "changing" event, but only sometimes.

       

      Imagine you have itemRenderer and inside are few components (let's say buttons) and I want change selection only when I click on some button, for all other clicks I want to use preventDefault. Problem is that in IndexChangeEvent target and currentTarget is always List and not clicked component. Is that ok?  I dont have any possibility to find out what was clicked. Thank you for help