-
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
ionic 2: ion-searchbar doesn't open search keyboard on iOS #7484
Comments
@mbrookson I will close this as a "won't fix" since we can't include a
^ this will be fixed next version! so no problem to use |
Hi! No answer for Any info that could fix this?
|
<form action=".">
<ion-searchbar
[(ngModel)]="searchKey"
[ngModelOptions]="{standalone: true}"
[showCancelButton]="true"
(search)="searchWithKeyword(activeTab)"
(ionCancel)="onCancel($event)"
[placeholder]="somePlaceHolder"
[animated]="false"
[value]=""
name="search"
>
</ion-searchbar>
</form> I have used form with action="." which is working |
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. |
On iOS, using the ion-searchbar component doesn't open the search keyboard type.
I have done some reading and seem to have found that since iOS 8,
<input type="search" />
needs to be wrapped in a<form>
tag for the correct keyboard to be displayed.You can fix this keyboard issue like so:
However, this then leads to another issue which is that the Search button on the native keyboard then triggers the cancel event and doesn't close the keyboard by default, see #7010
Would be great to see this in the next release since it seems like the search doesn't quite contain full search functionality
Thanks!
The text was updated successfully, but these errors were encountered: