Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25583] Calling focus method on searchbar does not show the keyboard.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.3.0, Release 8.0.1
Fix Version/sn/a
ComponentsAndroid
LabelsSearchBar,, engSchedule, focus
ReporterEmmanuel Francis
AssigneeUnknown
Created2017-12-04T09:58:37.000+0000
Updated2019-05-28T17:42:53.000+0000

Description

On a button click, I called the SearchBar focus method, it shows the focus cursor but keyboard do not popup.

Comments

  1. Mostafizur Rahman 2017-12-04

    Hello [~efrancis], Thanks for sharing with us. Please provide a full sample test code that regenerates the issue. Better to provide a sample app as an attachment here. We will test the issue in our environment. Also, provide the environment details you are testing on. Thanks.
  2. Hans Knöchel 2017-12-04

    [~vijaysingh] Can you check on this one?
  3. Sharif AbuDarda 2017-12-04

    Hello [~hknoechel], I was able to reproduce the issue with the below code
       var win = Ti.UI.createWindow();
       var search = Titanium.UI.createSearchBar({
       	barColor : '#000',
       	showCancel : true,
       	height : 43,
       	top : 0,
       });
       
       var button = Titanium.UI.createButton({
       	title : 'Hello',
       	top : 100,
       	width : 100,
       	height : 50
       });
       
       button.addEventListener('click', function(e) {
       	Titanium.API.info("You clicked the button");
       	search.focus();
       });
       
       win.add(search);
       win.add(button);
       win.open(); 
       
    With searchbar focus, the soft keyboard does not show. Tested with iOS 11.1 simulator with SDK 6.3.0.GA. Moving to TIMOB. Thanks.
  4. Sharif AbuDarda 2017-12-04

    Well, this seems to happen for Android too. In Android, searchbar is already focused on open. But the keyboard is not showing. Also, button clicks to focus the searbar also not show the keyboard. Thanks.
  5. Vijay Singh 2017-12-05

    I verified the give test code on iPhone X (iOS 11.1), iPhone 5s (iOS 11.1) simulator and iPhone 5s (11.0.1) device with 6.3.0.GA. For me it is working fine . Keyboard is getting opened , when I click on "Hello" button. [~sdarda] Is there any particular iOS simulator it is not working on? Can you please check once again. Thanks!

JSON Source