Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12492] iOS: Cancelling table view search does not un-highlight labels

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDaniel Sefton
AssigneeUnknown
Created2013-01-28T09:06:23.000+0000
Updated2018-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

FileDateSize
change selected.png2013-01-28T09:06:23.000+0000116113
search cancel pressed.png2013-01-28T09:06:23.000+0000115278
search pressed.png2013-01-28T09:06:23.000+0000169695
start with selected.png2013-01-28T09:06:23.000+0000116224

Comments

  1. Tony Lukasavage 2013-01-29

    Has this been attempted in traditional titanium development to ascertain if this actually an Alloy issue?
  2. Thomas Neerup 2013-01-30

    Yes it has. And it is not an Alloy issue. I do not think I reported it as such.
  3. Tony Lukasavage 2013-01-30

    Sorry Thomas, for some reason this was moved into the Alloy project. I'll move it to the appropriate project.

JSON Source