mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:38:08 +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:
parent
9af141ce0b
commit
a66db6323a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user