Skip to content

Commit

Permalink
Merge pull request #4581 from pingwang2011/timob-14901-3_1_X
Browse files Browse the repository at this point in the history
Timob 14901 3 1 x: ListView: A button within a ListView does not trigger an 'itemclick' event when clicked
  • Loading branch information
ayeung committed Aug 17, 2013
2 parents 0464cae + 102bec8 commit c55ef09
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ private void fireItemClick(String event, Object data)
}
}

@Override
public boolean hierarchyHasListener(String event)
{
// In order to fire the "itemclick" event when the children views are clicked,
// the children views' "click" events must be fired and bubbled up. (TIMOB-14901)
if (event.equals(TiC.EVENT_CLICK)) {
return true;
}
return super.hierarchyHasListener(event);
}

public void release()
{
super.release();
Expand Down

0 comments on commit c55ef09

Please sign in to comment.