Address: fix option regression

This commit is contained in:
Mathieu Jaumotte 2021-08-17 09:04:58 +02:00
parent 20cdec20d2
commit aa0ff37479

View File

@ -226,8 +226,8 @@ export default {
let type = this.default.button.type,
size = '';
if (typeof this.options.button !== 'undefined') {
type = typeof this.options.button.type !== 'undefined' ? this.options.button.type : type;
size = typeof this.options.button.size !== 'undefined' ? this.options.button.size : size;
type = this.options.button.type !== null ? this.options.button.type : type;
size = this.options.button.size !== null ? this.options.button.size : size;
}
return size ? `${size} ${type}` : type;
},