File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service';
3
3
4
4
export default Route . extend ( {
5
5
fastboot : service ( ) ,
6
- search : service ( ) ,
7
6
8
7
headTags ( ) {
9
8
return [
@@ -18,8 +17,6 @@ export default Route.extend({
18
17
} ,
19
18
20
19
setupController ( controller ) {
21
- this . search . set ( 'inputValue' , null ) ;
22
-
23
20
if ( ! controller . dataTask . hasData ) {
24
21
let promise = controller . dataTask . perform ( ) ;
25
22
if ( this . fastboot . isFastBoot ) {
Original file line number Diff line number Diff line change @@ -21,4 +21,9 @@ export default Route.extend({
21
21
this . search . set ( 'inputValue' , params . q ) ;
22
22
controller . dataTask . perform ( params ) ;
23
23
} ,
24
+
25
+ deactivate ( ) {
26
+ this . _super ( ...arguments ) ;
27
+ this . search . set ( 'inputValue' , null ) ;
28
+ } ,
24
29
} ) ;
You can’t perform that action at this time.
0 commit comments