Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27941] iOS: Button in ListView prevents itemClick event from triggering

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 9.0.2
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMarian Kucharcik
AssigneeUnknown
Created2020-06-05T10:42:02.000+0000
Updated2020-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

FileDateSize
index.js2020-06-05T10:38:44.000+00001831

Comments

No comments

JSON Source