mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
Fix initAttrs being made static
This commit is contained in:
committed by
Franz Liedke
parent
9e6cfcf05a
commit
94d3bea53e
@@ -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) {
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user