mirror of
https://github.com/flarum/core.git
synced 2025-10-11 06:54:26 +02:00
Initialise component state in init() instead of constructor
This allows component state to be overridden via monkey-patch. ref #246
This commit is contained in:
@@ -8,9 +8,7 @@ import extractText from 'flarum/utils/extractText';
|
||||
* edit it.
|
||||
*/
|
||||
export default class UserBio extends Component {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
|
||||
init() {
|
||||
/**
|
||||
* Whether or not the bio is currently being edited.
|
||||
*
|
||||
|
Reference in New Issue
Block a user