Skip to content

Commit

Permalink
fix(core): fix breakpoints enabled detection
Browse files Browse the repository at this point in the history
fixes #4543
  • Loading branch information
nolimits4web committed May 11, 2021
1 parent 0530ae9 commit 0be8099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/core/breakpoints/setBreakpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default function setBreakpoint() {
const isMultiRow = breakpointParams.slidesPerColumn > 1;

const wasEnabled = params.enabled;
const isEnabled = breakpointParams.enabled;

if (wasMultiRow && !isMultiRow) {
$el.removeClass(
Expand All @@ -63,6 +62,8 @@ export default function setBreakpoint() {

extend(swiper.params, breakpointParams);

const isEnabled = swiper.params.enabled;

extend(swiper, {
allowTouchMove: swiper.params.allowTouchMove,
allowSlideNext: swiper.params.allowSlideNext,
Expand Down

0 comments on commit 0be8099

Please sign in to comment.