Skip to content

Commit

Permalink
fix(core): fix navigation can be disabled in breakpoints
Browse files Browse the repository at this point in the history
fixes #6746
  • Loading branch information
nolimits4web committed Jun 12, 2023
1 parent abe1ec7 commit 1fd36ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/breakpoints/setBreakpoint.js
Expand Up @@ -41,6 +41,7 @@ export default function setBreakpoint() {

// Toggle navigation, pagination, scrollbar
['navigation', 'pagination', 'scrollbar'].forEach((prop) => {
if (typeof breakpointParams[prop] === 'undefined') return;
const wasModuleEnabled = params[prop] && params[prop].enabled;
const isModuleEnabled = breakpointParams[prop] && breakpointParams[prop].enabled;
if (wasModuleEnabled && !isModuleEnabled) {
Expand Down

0 comments on commit 1fd36ad

Please sign in to comment.