File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
app/components/search-input Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable ember/no-computed-properties-in-native-classes, ember/classic-decorator-hooks */
2
1
import {
3
2
classNames ,
4
3
attributeBindings ,
5
4
tagName ,
6
5
} from '@ember-decorators/component' ;
7
- import { set , get , computed } from '@ember/object' ;
6
+ import { get } from '@ember/object' ;
8
7
import Component from '@ember/component' ;
9
8
import { A } from '@ember/array' ;
9
+ import { tracked } from '@glimmer/tracking' ;
10
10
11
11
@tagName ( 'span' )
12
12
@classNames ( 'ds-dropdown-menu' , 'ds-with-1' )
@@ -17,9 +17,11 @@ export default class Dropdown extends Component {
17
17
18
18
isVisible = false ;
19
19
20
- init ( ) {
21
- super . init ( ...arguments ) ;
22
- set ( this , 'results' , A ( ) ) ;
20
+ @tracked results ;
21
+
22
+ constructor ( ) {
23
+ super ( ...arguments ) ;
24
+ this . results = A ( ) ;
23
25
}
24
26
25
27
// show
@@ -32,7 +34,6 @@ export default class Dropdown extends Component {
32
34
* }
33
35
* }
34
36
*/
35
- @computed ( 'results.[]' )
36
37
get _groupedResults ( ) {
37
38
if ( ! get ( this , 'results.length' ) ) {
38
39
return { } ;
You can’t perform that action at this time.
0 commit comments