Skip to content

Commit d0b6abd

Browse files
authored
fix(element): Query the swiper.hostEl for the navigation buttons (#7714) (#7716)
1 parent 6f33e3b commit d0b6abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/navigation/navigation.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function Navigation({ swiper, extendParams, on, emit }) {
2323
function getEl(el) {
2424
let res;
2525
if (el && typeof el === 'string' && swiper.isElement) {
26-
res = swiper.el.querySelector(el);
26+
res = swiper.el.querySelector(el) || swiper.hostEl.querySelector(el);
2727
if (res) return res;
2828
}
2929
if (el) {

0 commit comments

Comments
 (0)