[TIMOB-12492] iOS: Cancelling table view search does not un-highlight labels
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Daniel Sefton |
Assignee | Unknown |
Created | 2013-01-28T09:06:23.000+0000 |
Updated | 2018-02-28T20:04:21.000+0000 |
Description
*Steps to reproduce*
1. Create a new alloy project with this view:
<Alloy>
<Window class="container">
<TableView id="table" hideSearchOnSelection="false" allowsSelection="true">
<SearchBar id="search" />
<TableViewRow>
<Label height="40" text="Apples" highlightedColor="red">
</TableViewRow>
<TableViewRow>
<Label height="40" text="Bananas" highlightedColor="red">
</TableViewRow>
</TableView>
</Window>
</Alloy>
2. Run the project.
3. Select first row (Apples).
4. Click in the search bar.
5. Cancel the search.
6. Select second row (Bananas).
7. Select first row (Apples).
The problems with the highlighted colors only happens when the search bar is used.
*Actual result*
4/5. The selected row is deselected but the highlighted color of the labels remains (red). See images "search pressed.png" and "search cancel pressed.png".
6. The highlighted color remains on the first row.
7. The highlighted colors are reverted as they should.
*Expected result*
4/5/6. The highlighted color of the labels should be reverted to normal state (black).
7. The highlighted colors are reverted as they should.
Attachments
File | Date | Size |
---|---|---|
change selected.png | 2013-01-28T09:06:23.000+0000 | 116113 |
search cancel pressed.png | 2013-01-28T09:06:23.000+0000 | 115278 |
search pressed.png | 2013-01-28T09:06:23.000+0000 | 169695 |
start with selected.png | 2013-01-28T09:06:23.000+0000 | 116224 |
Has this been attempted in traditional titanium development to ascertain if this actually an Alloy issue?
Yes it has. And it is not an Alloy issue. I do not think I reported it as such.
Sorry Thomas, for some reason this was moved into the Alloy project. I'll move it to the appropriate project.