Skip to content

Commit

Permalink
Workaround weird bug that only happens when you have focus on search …
Browse files Browse the repository at this point in the history
…box and no ?query= in the url and then click on a page link. Seems to update query and ignore the page click (maybe because component is rerendered?)
  • Loading branch information
jlami committed Feb 16, 2017
1 parent 657886c commit 0f4a2b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Ember from "ember";
export default Ember.Controller.extend({
page: 1,
perPage: 5,
query: '',

queryParams: ["page", "perPage", "query"]
});

0 comments on commit 0f4a2b1

Please sign in to comment.