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

ion-searchbar [animated]="true" [showCancelButton]="false" #9391

Closed
ghost opened this issue Nov 28, 2016 · 5 comments
Closed

ion-searchbar [animated]="true" [showCancelButton]="false" #9391

ghost opened this issue Nov 28, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 28, 2016

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

I'm submitting a ... (check one with "x")
[x] bug report

Current behavior:
When [animated]="true" is used on ion-searchbar, Cancel button is shown, even when [showCancelButton]="false".

Expected behavior:
Cancel button is displayed based on [showCancelButton] setting only.

Steps to reproduce:
Use the below code.
User enters ion-searchbar.
Cancel button is displayed

<ion-header>
  <ion-navbar>
    <ion-searchbar [animated]="true" [showCancelButton]="false">
    </ion-searchbar>
  </ion-navbar>
</ion-header>

<ion-content padding>
  The world is your oyster.
</ion-content>

screen shot 2016-11-28 at 15 36 09

Other information:

Cordova CLI: 6.4.0 
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.13
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: 1.9.0 
ios-sim version: 5.0.8 
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62
@manucorporat
Copy link
Contributor

Use:

    <ion-searchbar animated="true" showCancelButton="false">

since you are not binding a dynamic value

@ghost
Copy link
Author

ghost commented Nov 29, 2016

Using animated="true" showCancelButton="false", Cancel button is still displayed.

<ion-header>
  <ion-navbar>
    <ion-searchbar animated="true" showCancelButton="false">
    </ion-searchbar>
  </ion-navbar>
</ion-header>

screen shot 2016-11-29 at 09 04 30

@ghost
Copy link
Author

ghost commented Nov 29, 2016

@manucorporat please consider to reopen, problem was not solved

@mumairofficial
Copy link

mumairofficial commented May 5, 2017

In my case this is working well [showCancelButton]="true" notice within [...] brackets

@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

2 participants