Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: Release 5.3.1
-
Fix Version/s: Release 7.0.2
-
Component/s: iOS
-
Labels:
-
Environment:
Mac OSX 10.11.5
iOS9.X Simulator
Xcode 7.3
Ti 5.3.1.GA
-
Story Points:5
-
Sprint:2017 Sprint 02 SDK
Description
Setup:
>Textfield with a Ti.UI.IOS.Toolbar with one button.
>Click eventlistener on the button which calls .blur() on the textfield
The keypad slides down, leaving the Toolbar at the top. When the keypad has slid off the page, only then does the Toolbar start to slide down.
Here's a slow-mo GIF: http://i.stack.imgur.com/x2zc2.gif
Sample code:
Causes a noticeable flash for the user.
<TextField id="txt_contactNumber" class="txt_inputshort">
<KeyboardToolbar>
<Toolbar id="numberToolbar" bottom="0">
<Items>
<Button id="flexSpace" systemButton="Ti.UI.iPhone.SystemButton.FLEXIBLE_SPACE" />
<Button id="cancelContact" systemButton="Ti.UI.iPhone.SystemButton.DONE" />
</Items>
</Toolbar>
</KeyboardToolbar>
</TextField>
$.cancelContact.addEventListener('click', function()
{ $.txt_contactNumber.blur(); });