Skip to content

Commit

Permalink
fix: navigation, pagination, scrollbar props nolimits4web#4181
Browse files Browse the repository at this point in the history
  • Loading branch information
mya-ake committed Feb 2, 2021
1 parent 5208b1a commit 460787d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/react/get-params.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ function getParams(obj = {}) {
}
});
['navigation', 'pagination', 'scrollbar'].forEach((key) => {
if (params[key] === true || params[key] === false) params[key] = {};
if (params[key] === true) params[key] = {};
if (params[key] === false) {
switch (key) {
case 'navigation':
params[key] = { nextEl: null, prevEl: null };
break;
default:
params[key] = { el: null };
break;
}
}
});

return { params, passedParams, rest };
Expand Down

0 comments on commit 460787d

Please sign in to comment.