FIX: btn class was duplicated on admin-menu-buttons (#7555)

This commit is contained in:
Joffrey JAFFEUX 2019-05-16 14:37:53 +02:00 committed by GitHub
parent 0c6ebe66ce
commit 244c03573a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3,9 +3,9 @@ import { h } from "virtual-dom";
createWidget("admin-menu-button", {
html(attrs) {
let className = "btn";
let className;
if (attrs.buttonClass) {
className += " " + attrs.buttonClass;
className = attrs.buttonClass;
}
return h(