mirror of
https://github.com/flarum/core.git
synced 2025-07-29 20:50:28 +02:00
Initialise component state in init() instead of constructor
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user