[TIMOB-27941] iOS: Button in ListView prevents itemClick event from triggering
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 9.0.2 |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Marian Kucharcik |
Assignee | Unknown |
Created | 2020-06-05T10:42:02.000+0000 |
Updated | 2020-06-05T10:50:00.000+0000 |
Description
A button located in a ListItem doesn't trigger the
itemclick
event.
When setting touchEnabled
to false on the button it does work, however that prevents visual queues on clicking it.
*Expected result*
When clicking a button located in a ListItem the itemclick
event should work
*Code*
Attached is the compiled code, put that in index.js on an alloy project and you don't need any xml code to test it. XML below:
<Window>
<ListView defaultItemTemplate="tmpl" onItemclick="handleClick">
<Templates>
<ItemTemplate name="tmpl">
<Button backgroundColor="white" width="100" height="50" left="40" bindId="test" title="test"></Button>
<Label bindId="testlabel" right="20">Label</Label>
</ItemTemplate>
</Templates>
<ListSection>
<ListItem />
</ListSection>
</ListView>
</Window>
Attachments
File | Date | Size |
---|---|---|
index.js | 2020-06-05T10:38:44.000+0000 | 1831 |
No comments