FIX: Show overriden checkbox not triggering search on check.

This commit is contained in:
Guo Xiang Tan 2016-07-08 14:37:24 +08:00
parent e619af3eee
commit 2484b8eb91
2 changed files with 3 additions and 3 deletions

View file

@ -45,9 +45,9 @@ export default Ember.Controller.extend({
this.transitionToRoute('adminSiteText.edit', siteText.get('id'));
},
search() {
search(overridden) {
const q = this.get('q');
if (q !== lastSearch) {
if (q !== lastSearch || overridden) {
this.set('searching', true);
Ember.run.debounce(this, this._performSearch, 400);
lastSearch = q;

View file

@ -7,7 +7,7 @@ export default Ember.Component.extend({
_watchChanges() {
// In Ember 13.3 we can use action on the checkbox `{{input}}` but not in 1.11
this.$('input').on('click.d-checkbox', () => {
Ember.run.scheduleOnce('afterRender', () => this.sendAction('change'));
Ember.run.scheduleOnce('afterRender', () => this.sendAction('change', true));
});
},