Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
itchief committed Mar 9, 2023
1 parent 4906d62 commit 22b407b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions itc-slider/itc-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ class ItcSlider {
}

#onClick(e) {
if (!(e.target.closest('.itc-slider__btn') || e.target.closest('.itc-slider__indicators'))) {
return;
}
e.preventDefault();
const classBtnPrev = this.#state.prefix + this.constructor.#BTN_PREV;
const classBtnNext = this.#state.prefix + this.constructor.#BTN_NEXT;
Expand Down
2 changes: 1 addition & 1 deletion itc-slider/itc-slider.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22b407b

Please sign in to comment.