From 35d76515d36a93e9b572dadae56a0caa19ceea6a Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Mon, 10 Aug 2020 00:47:51 -0400 Subject: [PATCH] update: forum/components/TextEditorButton --- js/src/forum/components/TextEditorButton.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/js/src/forum/components/TextEditorButton.js b/js/src/forum/components/TextEditorButton.js index 4baf8050b..cbb500756 100644 --- a/js/src/forum/components/TextEditorButton.js +++ b/js/src/forum/components/TextEditorButton.js @@ -5,16 +5,14 @@ import Button from '../../common/components/Button'; * editor toolbar. */ export default class TextEditorButton extends Button { - static initProps(props) { - super.initProps(props); + initAttrs(attrs) { + super.initAttrs(attrs); - props.className = props.className || 'Button Button--icon Button--link'; + attrs.className = attrs.className || 'Button Button--icon Button--link'; } - config(isInitialized, context) { - super.config(isInitialized, context); - - if (isInitialized) return; + oncreate(vnode) { + super.oncreate(vnode); this.$().tooltip(); }