Fixed #4150 - Improve pt syntax for 'class' definitions
parent
cbad15003f
commit
68c5d088eb
|
@ -437,7 +437,7 @@ export default {
|
|||
const getValue = (...args) => {
|
||||
const value = this._getOptionValue(...args);
|
||||
|
||||
return ObjectUtils.isString(value) ? { class: value } : value;
|
||||
return ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? { class: value } : value;
|
||||
};
|
||||
|
||||
const datasetPrefix = 'data-pc-';
|
||||
|
|
|
@ -18,7 +18,7 @@ const BaseDirective = {
|
|||
const getValue = (...args) => {
|
||||
const value = BaseDirective._getOptionValue(...args);
|
||||
|
||||
return ObjectUtils.isString(value) ? { class: value } : value;
|
||||
return ObjectUtils.isString(value) || ObjectUtils.isArray(value) ? { class: value } : value;
|
||||
};
|
||||
|
||||
const datasetPrefix = 'data-pc-';
|
||||
|
|
Loading…
Reference in New Issue