Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-379] Search bar: only show cancel button when search input has the focus.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-07-26T18:48:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsfeature, ios, iphone, searchbar
ReporterRobb Shecter
AssigneeReggie Seagraves
Created2011-04-15T02:28:20.000+0000
Updated2011-07-26T18:48:48.000+0000

Description

Enhancement suggestion: Currently, when cancel is 'true', the cancel button is always displayed. It's disabled if the search input doesn't have the focus.

I believe that a different behavior would create a cleaner UI: Make the cancel button invisible instead of disabled when the search bar doesn't have the focus. On the iPhone platform, the disabled state is still somewhat 'active'-looking. The presence of the disabled button is also unnecessary clutter.

Comments

  1. James K 2011-04-15

    This is very easy to implement - see the new setShowCancel method in https://developer.appcelerator.com/question/9091/i-can-not-set-uisearchbarplaceholder"> this thread.

  2. Matthew Lieder 2011-04-15

    This has my vote; I'm currently having to programmatically do it.

  3. Vikramjeet Singh 2011-07-26

    Bug Scrub: Invalid. Test Case exists Tested On: TiMOB sdk version: 1.7.2 Studio version: 1.0.2 OS Version: Mac OSX Lion Device tested On - iPhone 4.2.9

JSON Source