Skip to content
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/navBar strange behavior! #10776

Closed
jbertrand992 opened this issue Mar 14, 2017 · 5 comments
Closed

SearchBar/navBar strange behavior! #10776

jbertrand992 opened this issue Mar 14, 2017 · 5 comments

Comments

@jbertrand992
Copy link

**Ionic version:** (check one with "x")
[ ] 1.x
[X] 2.x

I'm submitting a ... (check one with "x")
[X] bug report
[X] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
When I click on the "Cancel" button of "searchBar", I see the navBar (ion-tabs) in the middle of screen before keyboard closes.

Expected behavior:
navBar should be in the footer of screen and must be stil there during the closing of keyboard

Steps to reproduce:
I illustrate this behavior with 3 pictures (3 steps) and i small movie.

For Ionic 1 issues - http://plnkr.co/edit/Xo1QyAUx35ny1Xf9ODHx?p=previ
screen shot 2017-03-14 at 10 21 45 pm
screen shot 2017-03-14 at 10 22 14 pm
screen shot 2017-03-14 at 10 22 36 pm

AYQL0069.m4v.zip

ew

For Ionic 2 issues - http://plnkr.co/edit/z0DzVL?p=preview
-->

Related code:

insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

insert the output from ionic info here
@jbertrand992
Copy link
Author

the codes of this issu are:

code HTML:
-----for searchBar----
<ion-searchbar
[(ngModel)]="searchKey"
cancelButtonText="cancel"
showCancelButton="true"
(ionInput)="getItems()"
(ionCancel)="onCancel()"
placeholder="Que faire?"
mode="ios"
debounce="0"
>

---for ion-tabs----

----------------------------------------------------------------- code .TS:

onCancel(event){
console.log("ok")
}

onInput(event) {
console.log(this.searchKey)
}

@metz0r
Copy link

metz0r commented Mar 15, 2017

I also experienced this issue but after switching to WKWebView the problem is gone: http://blog.ionic.io/cordova-ios-performance-improvements-drop-in-speed-with-wkwebview/

also: #10552

@jgw96
Copy link
Contributor

jgw96 commented Mar 15, 2017

Hello all! Closing this issue as a duplicate of #10552. Also, as @metz0r mentions above this is an issue related to a bug in UiWebView and switching to our WkWebView cordova plugin will fix the issue. We are working on making WkWebView the default for all Ionic applications shipped to iOS devices which will solve this issue for good. Thanks for using Ionic!

@jgw96 jgw96 closed this as completed Mar 15, 2017
@jbertrand992
Copy link
Author

Thanks you guys it works :)

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants