-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
Short description of the problem:
RC1. Device: iOS 10.0.2.
This only happens when testing on the device, it works as expected while testing in Chrome.
Searchbar input will not blur when tapping anywhere outside of the component, so the keyboard will not go away and the ionBlur event is not firing. It will blur if you tap on a button or something else that gains focus. The only way I have been able to work around this is to add click listener directives to all of the elements around the Searchbar.
I notice that the Searchbar is using a normal input as opposed to an ion-input, so it also inhibits the cursor peekaboo effect where the cursor can still be seen while scrolling underneath fixed elements like headers.
What behavior are you expecting?
Tapping anywhere outside the Search bar will remove the keyboard and fire the (ionBlur) event.
Steps to reproduce:
- Fire up a basic v2 tabs project
- Add a Searchbar
- Tap Searchbar input, tap anywhere outside after keyboard is shown.
Which Ionic Version? 1.x or 2.x
2.X RC1
Cordova CLI: 6.3.0
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
ios-deploy version: 1.8.6
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v6.2.2
Xcode version: Xcode 8.0 Build version 8A218a