Skip to content

Commit

Permalink
fix(core): fix issues with navigation/pagination enabled prop
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed May 31, 2022
1 parent ca91e93 commit af9ed85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/pagination/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export default function Pagination({ swiper, extendParams, on, emit }) {
}

on('init', () => {
if (swiper.params.navigation.enabled === false) {
if (swiper.params.pagination.enabled === false) {
// eslint-disable-next-line
disable();
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/scrollbar/scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export default function Scrollbar({ swiper, extendParams, on, emit }) {
}

on('init', () => {
if (swiper.params.navigation.enabled === false) {
if (swiper.params.scrollbar.enabled === false) {
// eslint-disable-next-line
disable();
} else {
Expand Down

0 comments on commit af9ed85

Please sign in to comment.