mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
Call logic from onupdate in oncreate where relevant
This commit is contained in:
committed by
Franz Liedke
parent
4b05e0073a
commit
44c1e91f05
@@ -119,6 +119,9 @@ export default class Search extends Component {
|
|||||||
const search = this;
|
const search = this;
|
||||||
const state = this.state;
|
const state = this.state;
|
||||||
|
|
||||||
|
// Highlight the item that is currently selected.
|
||||||
|
this.setIndex(this.getCurrentNumericIndex());
|
||||||
|
|
||||||
this.$('.Search-results')
|
this.$('.Search-results')
|
||||||
.on('mousedown', (e) => e.preventDefault())
|
.on('mousedown', (e) => e.preventDefault())
|
||||||
.on('click', () => this.$('input').blur())
|
.on('click', () => this.$('input').blur())
|
||||||
|
Reference in New Issue
Block a user