Skip to content

Commit 192e0d4

Browse files
committed
fix(element): fix converting boolean/string params to module object
fixes #6328
1 parent a335b09 commit 192e0d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/element/get-params.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ function getParams(element) {
7070
if (!allowedParams.includes(name)) return;
7171
const value = formatValue(attr.value);
7272
if (passedParams[name] && modulesParamsList.includes(attr.name)) {
73+
if (passedParams[name].constructor !== Object) {
74+
passedParams[name] = {};
75+
}
7376
passedParams[name].enabled = value;
7477
} else {
7578
passedParams[name] = value;

0 commit comments

Comments
 (0)