fix: 🐛 Fix search field race condition in DC targets (#2723)
* fix: 🐛 Fix search field race condition in DC targets * feat: 🎸 Keep track of last search to know when to debounce ✅ Closes: ICU-14775
This commit is contained in:
1 parent
dff5cac4fe
commit
7becccd628
2 files changed
+88
-66
No files matched your search
@@ -8,7 +8,6 @@ import { service } from '@ember/service';
|
||||
import { action } from '@ember/object';
|
||||
import { loading } from 'ember-loading';
|
||||
import { tracked } from '@glimmer/tracking';
|
||||
import { debounce } from 'core/decorators/debounce';
|
||||
import { notifySuccess, notifyError } from 'core/decorators/notify';
|
||||
import orderBy from 'lodash/orderBy';
|
||||
import { TYPES_TARGET } from 'api/models/target';
|
||||
@@ -251,7 +250,6 @@ export default class ScopesScopeProjectsTargetsIndexController extends Controlle
|
||||
* @param {object} event
|
||||
*/
|
||||
@action
|
||||
@debounce(250)
|
||||
handleSearchInput(event) {
|
||||
const { value } = event.target;
|
||||
this.search = value;
|
||||
|
||||
Reference in new issue
Block a user