Skip to content

Commit

Permalink
fix(scrollbar): fix duplicated scrollbar
Browse files Browse the repository at this point in the history
fixes #6386
  • Loading branch information
nolimits4web committed Feb 13, 2023
1 parent c94e08d commit e99361d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/scrollbar/scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export default function Scrollbar({ swiper, extendParams, on, emit }) {

let dragEl;
if (el) {
el.querySelector(`.${swiper.params.scrollbar.dragClass}`);
dragEl = el.querySelector(`.${swiper.params.scrollbar.dragClass}`);
if (!dragEl) {
dragEl = createElement('div', swiper.params.scrollbar.dragClass);
el.append(dragEl);
Expand Down

0 comments on commit e99361d

Please sign in to comment.