[AC-1928] Alloy ListView TextField in Item Template with events causing a runtime error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-15T18:47:42.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy |
Labels | n/a |
Reporter | Darren Haligas |
Assignee | Tony Lukasavage |
Created | 2014-01-15T18:30:16.000+0000 |
Updated | 2016-03-08T07:40:51.000+0000 |
Description
When adding a TextField in the ListView ItemTemplate that has events extra code is created that causes a runtime error.
"'undefined' is not an object (evaluating '$.__views.number.addEventListener')";
<ListView id="transForm" defaultItemTemplate="pickerTpl" style="Titanium.UI.iPhone.ListViewStyle.GROUPED">
<Templates>
<ItemTemplate name="pickerTpl">
<ImageView bindId="icon" id="icon"/>
<Label bindId="label" id="label"/>
</ItemTemplate>
<ItemTemplate name="numberTpl">
<ImageView bindId="icon" id="icon"/>
<TextField bindId="number" id="number" onChange="numberChange" />
</ItemTemplate>
</Templates>
<ListSection id="numSection">
<ListItem template="numberTpl" number:hintText="-" />
</ListSection>
</ListView>
Attachments
File | Date | Size |
---|---|---|
app.zip | 2014-01-15T18:30:16.000+0000 | 3381028 |
I just tried this with alloy 1.3.1-beta3 and got no runtime error. Can you please try that version and tell me whether you still get an error?
That works. When is that dropping?
Already resolved in 1.3.1 beta
Darren, Is there anything else you need on this issue? If not, can we close this ticket? Thanks, Shak
Shak, I will have to wait for Alloy 1.3.1 for the fix. Currently i have a workaround for now using 1.3.0.