Skip to content

Commit

Permalink
fix(element): Query the swiper.hostEl for the navigation buttons (#7714
Browse files Browse the repository at this point in the history
…) (#7716)
  • Loading branch information
Ashkanph authored Sep 2, 2024
1 parent 6f33e3b commit d0b6abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/navigation/navigation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Navigation({ swiper, extendParams, on, emit }) {
function getEl(el) {
let res;
if (el && typeof el === 'string' && swiper.isElement) {
res = swiper.el.querySelector(el);
res = swiper.el.querySelector(el) || swiper.hostEl.querySelector(el);
if (res) return res;
}
if (el) {
Expand Down

0 comments on commit d0b6abd

Please sign in to comment.