Fix search routing

Blurring the input causes a redraw, which hides the results and
invalidates the current index. So the routing wasn't working.

Drawer is now hidden on IndexPage construction.
This commit is contained in:
Toby Zerner 2015-07-22 09:52:58 +09:30
parent 9af141ce0b
commit a66db6323a

View File

@ -133,9 +133,8 @@ export default class Search extends Component {
break;
case 13: // Return
this.$('input').blur();
m.route(this.getItem(this.index).find('a').attr('href'));
app.drawer.hide();
this.$('input').blur();
break;
case 27: // Escape