Small styling fix

This commit is contained in:
Liam DeBeasi
2019-06-11 11:31:22 -04:00
parent 0b78a00afb
commit 577318be15

View File

@ -399,10 +399,12 @@ export class Searchbar implements ComponentInterface {
* options are removed.
*/
private isCancelButtonSetToFocus(): boolean {
return this.showCancelButton === 'focus' ||
return (
this.showCancelButton === 'focus' ||
this.showCancelButton === 'true' ||
this.showCancelButton === true ||
this.showCancelButton === '';
this.showCancelButton === ''
);
}
/**
@ -413,9 +415,11 @@ export class Searchbar implements ComponentInterface {
* options are removed.
*/
private isCancelButtonSetToNever(): boolean {
return this.showCancelButton === 'never' ||
return (
this.showCancelButton === 'never' ||
this.showCancelButton === 'false' ||
this.showCancelButton === false;
this.showCancelButton === false
);
}
hostData() {