Skip to content

Commit

Permalink
fix(a11y): update aria-disabled on lock/unlock
Browse files Browse the repository at this point in the history
fixes #5383
  • Loading branch information
nolimits4web committed Jan 24, 2022
1 parent 481fb03 commit 8183466
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/modules/a11y/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,8 @@ export default function A11y({ swiper, extendParams, on }) {
on('afterInit', () => {
if (!swiper.params.a11y.enabled) return;
init();
updateNavigation();
});
on('toEdge', () => {
if (!swiper.params.a11y.enabled) return;
updateNavigation();
});
on('fromEdge', () => {
on('fromEdge toEdge afterInit lock unlock', () => {
if (!swiper.params.a11y.enabled) return;
updateNavigation();
});
Expand Down

0 comments on commit 8183466

Please sign in to comment.