-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Searchbar Not Blurring #8933
Comments
@manucorporat im thinking this is probably caused by the backrdop on iOS right? |
@jgw96 I don't think so, hard to say without testing |
If it helps, the blurring works fine on Android but not on iOS. |
We are also observing this behavior in 2.x RC2 |
Just to add to this issue, I'm seeing a delay (300ms tap delay?) when tapping the searchbar to gain focus, and similar when tapping clear or cancel. EDIT: Not experiencing this in conference app - No idea why my app does this. |
We added |
@Xal3ph Nice. That seems to workaround the issue for me too. Btw, do you also experience input is slow to get focus on tap? I played around with the |
I have a same issue - searchbar not blurring. I couldn't understand the workaround. Add (click)="return;" to ion-content? |
@vincentgigandet Yes <ion-content (click)="return;">
</ion-content> or <ion-content (click)="{}">
</ion-content> |
@Xal3ph Thanks! It worked! FYI
but this worked.
|
very annoying issue. |
@comfortme Exactly the same here! |
click events seem to hide the keyboard now for me, but scroll events don't so if the user wants to scroll through the filtered results to find what they want to click on the keyboard doesn't close, often meaning the user has a very small window to scroll. This fixes it for me:
then this uses the ionic-native Keyboard module to hide the keyboard if the user starts scrolling. |
I have a similar issue - searchbar not blurring when scroll list, but click other part other than searchbar hide keyboard indeed. And there is my View Structure:
|
@liuwenzhuang I have posted simple steps just above to add a scrollStart listener and close the keyboard on scroll start. Just follow those. |
fixes ionic-team#9699 fixes ionic-team#11484 fixes ionic-team#11389 fixes ionic-team#11325 fixes ionic-team#11291 fixes ionic-team#10828 fixes ionic-team#11291 fixes ionic-team#10393 fixes ionic-team#10257 fixes ionic-team#9434 fixes ionic-team#8933 fixes ionic-team#7178 fixes ionic-team#7047 fixes ionic-team#10552 fixes ionic-team#10393 fixes ionic-team#10183 fixes ionic-team#10187
This issue still occurs on Ionic Framework 3.5.2 both on iOS and Android. You can easily reproduce it by installing Ionic Conference app: https://play.google.com/store/apps/details?id=com.ionicframework.ionic2843511 |
It's only when you run on a device that the problem occur |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
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:
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
The text was updated successfully, but these errors were encountered: