1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 08:56:38 +02:00

Fix initAttrs being made static

This commit is contained in:
Alexander Skvortsov
2020-08-15 20:07:24 -04:00
committed by Franz Liedke
parent 9e6cfcf05a
commit 94d3bea53e
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ export default abstract class Component<T extends ComponentAttrs = any> implemen
}
private setAttrs(attrs: T = {} as T) {
this.initAttrs(attrs);
this.constructor.initAttrs(attrs);
if (attrs) {
if ('children' in attrs) {

View File

@@ -16,7 +16,7 @@ export default class LinkButton extends Button {
static initAttrs(attrs) {
super.initAttrs(attrs);
attrs.active = this.constructor.isActive(attrs);
attrs.active = this.isActive(attrs);
}
view(vnode) {