From 994fdc708443d7490e241a9094c0c6aac1666b74 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 6 Oct 2015 19:03:50 -0400 Subject: [PATCH] fix(search-bar): set isFocused to false and remove shouldLeftAlign for custom function references #247 --- ionic/components/search-bar/search-bar.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ionic/components/search-bar/search-bar.ts b/ionic/components/search-bar/search-bar.ts index 778b661b02..78de425796 100644 --- a/ionic/components/search-bar/search-bar.ts +++ b/ionic/components/search-bar/search-bar.ts @@ -28,6 +28,9 @@ import {IonicComponent, IonicView} from '../../config/decorators'; 'placeholder': 'Search', 'cancelAction': function() { console.log('Default Cancel'); + this.isFocused = false; + this.shouldLeftAlign = this.value.trim() != ''; + // TODO input blur } } })