mirror of
https://github.com/flarum/framework.git
synced 2025-06-23 02:51:22 +08:00
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:
@ -133,9 +133,8 @@ export default class Search extends Component {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 13: // Return
|
case 13: // Return
|
||||||
this.$('input').blur();
|
|
||||||
m.route(this.getItem(this.index).find('a').attr('href'));
|
m.route(this.getItem(this.index).find('a').attr('href'));
|
||||||
app.drawer.hide();
|
this.$('input').blur();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 27: // Escape
|
case 27: // Escape
|
||||||
|
Reference in New Issue
Block a user