mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(search-bar): set isFocused to false and remove shouldLeftAlign for custom function
references #247
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user