File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ export default Component.extend({
10
10
return this . get ( 'model.id' ) === this . get ( 'chosenId' ) ;
11
11
} ) ,
12
12
13
+ click ( ) {
14
+ let select = this . get ( 'select' ) ;
15
+ if ( select ) {
16
+ select ( this . get ( 'model' ) ) ;
17
+ }
18
+ } ,
19
+
13
20
mouseEnter ( ) {
14
21
this . set ( 'model.isSelected' , true ) ;
15
22
let hover = this . get ( 'hover' ) ;
@@ -32,12 +39,6 @@ export default Component.extend({
32
39
33
40
toggleExpand ( ) {
34
41
this . toggleProperty ( 'model.isExpanded' ) ;
35
- } ,
36
- select ( ) {
37
- let select = this . get ( 'select' ) ;
38
- if ( select ) {
39
- select ( this . get ( 'model' ) ) ;
40
- }
41
42
}
42
43
}
43
44
} ) ;
Original file line number Diff line number Diff line change 15
15
{{ /if }}
16
16
17
17
{{ #if hasBlock }}
18
- <span onclick ={{ action ' select' }} >
19
- {{ yield model }}
20
- </span >
18
+ {{ yield model }}
21
19
{{ else }}
22
- <span onclick ={{ action ' select' }} >
23
- {{ model.name }}
24
- </span >
20
+ {{ model.name }}
25
21
{{ /if }}
You can’t perform that action at this time.
0 commit comments