Skip to content

Commit

Permalink
fix(element): fix converting boolean/string params to module object
Browse files Browse the repository at this point in the history
fixes #6328
  • Loading branch information
nolimits4web committed Feb 6, 2023
1 parent a335b09 commit 192e0d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/element/get-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ function getParams(element) {
if (!allowedParams.includes(name)) return;
const value = formatValue(attr.value);
if (passedParams[name] && modulesParamsList.includes(attr.name)) {
if (passedParams[name].constructor !== Object) {
passedParams[name] = {};
}
passedParams[name].enabled = value;
} else {
passedParams[name] = value;
Expand Down

0 comments on commit 192e0d4

Please sign in to comment.