mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
Initialise component state in init() instead of constructor
This commit is contained in:
parent
b00467ecd7
commit
4d5a291d76
@ -1,9 +1,7 @@
|
||||
import Component from 'flarum/Component';
|
||||
|
||||
export default class AutocompleteDropdown extends Component {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
init() {
|
||||
this.active = false;
|
||||
this.index = 0;
|
||||
this.keyWasJustPressed = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user