Fix linting issues
This commit is contained in:
5
src/js/controls.js
vendored
5
src/js/controls.js
vendored
@ -139,10 +139,7 @@ const controls = {
|
||||
// Create hidden text label
|
||||
createLabel(key, attr = {}) {
|
||||
const text = i18n.get(key, this.config);
|
||||
|
||||
const attributes = Object.assign({}, attr, {
|
||||
class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' '),
|
||||
});
|
||||
const attributes = { ...attr, class: [attr.class, this.config.classNames.hidden].filter(Boolean).join(' '),};
|
||||
|
||||
return createElement('span', attributes, text);
|
||||
},
|
||||
|
Reference in New Issue
Block a user