Skip to content

Commit 0be8099

Browse files
committed
fix(core): fix breakpoints enabled detection
fixes #4543
1 parent 0530ae9 commit 0be8099

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/core/breakpoints/setBreakpoint.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export default function setBreakpoint() {
3737
const isMultiRow = breakpointParams.slidesPerColumn > 1;
3838

3939
const wasEnabled = params.enabled;
40-
const isEnabled = breakpointParams.enabled;
4140

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

6463
extend(swiper.params, breakpointParams);
6564

65+
const isEnabled = swiper.params.enabled;
66+
6667
extend(swiper, {
6768
allowTouchMove: swiper.params.allowTouchMove,
6869
allowSlideNext: swiper.params.allowSlideNext,

0 commit comments

Comments
 (0)