mirror of
https://github.com/flarum/framework.git
synced 2025-02-22 04:33:28 +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;
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user