Skip to content

Commit

Permalink
fix(a11y): fix JS error "swiper.a11y is undefined" (#6226)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScorpAL authored Nov 21, 2022
1 parent 339f52e commit 02c1502
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/a11y/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ export default function A11y({ swiper, extendParams, on }) {
const handlePointerUp = () => {
requestAnimationFrame(() => {
requestAnimationFrame(() => {
swiper.a11y.clicked = false;
if (!swiper.destroyed) {
swiper.a11y.clicked = false;
}
});
});
};
Expand Down

0 comments on commit 02c1502

Please # to comment.