mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
Small styling fix
This commit is contained in:
@ -399,10 +399,12 @@ export class Searchbar implements ComponentInterface {
|
|||||||
* options are removed.
|
* options are removed.
|
||||||
*/
|
*/
|
||||||
private isCancelButtonSetToFocus(): boolean {
|
private isCancelButtonSetToFocus(): boolean {
|
||||||
return this.showCancelButton === 'focus' ||
|
return (
|
||||||
|
this.showCancelButton === 'focus' ||
|
||||||
this.showCancelButton === 'true' ||
|
this.showCancelButton === 'true' ||
|
||||||
this.showCancelButton === true ||
|
this.showCancelButton === true ||
|
||||||
this.showCancelButton === '';
|
this.showCancelButton === ''
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -413,9 +415,11 @@ export class Searchbar implements ComponentInterface {
|
|||||||
* options are removed.
|
* options are removed.
|
||||||
*/
|
*/
|
||||||
private isCancelButtonSetToNever(): boolean {
|
private isCancelButtonSetToNever(): boolean {
|
||||||
return this.showCancelButton === 'never' ||
|
return (
|
||||||
|
this.showCancelButton === 'never' ||
|
||||||
this.showCancelButton === 'false' ||
|
this.showCancelButton === 'false' ||
|
||||||
this.showCancelButton === false;
|
this.showCancelButton === false
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
hostData() {
|
hostData() {
|
||||||
|
|||||||
Reference in New Issue
Block a user