mirror of
https://github.com/flarum/core.git
synced 2025-08-02 14:37:49 +02:00
Initialise component state in init() instead of constructor
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
import Component from 'flarum/Component';
|
import Component from 'flarum/Component';
|
||||||
|
|
||||||
export default class AutocompleteDropdown extends Component {
|
export default class AutocompleteDropdown extends Component {
|
||||||
constructor(...args) {
|
init() {
|
||||||
super(...args);
|
|
||||||
|
|
||||||
this.active = false;
|
this.active = false;
|
||||||
this.index = 0;
|
this.index = 0;
|
||||||
this.keyWasJustPressed = false;
|
this.keyWasJustPressed = false;
|
||||||
|
Reference in New Issue
Block a user