question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When using bootstrap's row and column classes within the swiper-slide class, elements within are not clickable on the 3rd slide! Only happens with effect cube.

See original GitHub issue

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/swiper-effect-cube-forked-tf46z

Bug description

I have bootstrap imported in my project and I have the following 3 divs nested and an input element within:

        <div class="swiper-slide">
            <div class="row">
                <div class ="col">
                   <input type="radio">

I have three slides each containing the same code and the radion type input is perfectly clickable on slides 1 and 2. However, strangely, it is not clickable on slide 3. What’s even stranger is that the problem is only present when using the cube effect. If I change the effect to flip or something else, the bug disappears.

This happens with many different versions of swiper-js and different versions of Chrome and Safari browsers.

Expected Behavior

The input elements to be always clickable on every slide.

Actual Behavior

When using bootstrap’s row and column classes within the swiper-slide class, elements within are not clickable on the 3rd slide. Only happens with effect cube.

Swiper version

7.3.1

Platform/Target and Browser Versions

Chrome 96.0.4664.45 (Official Build) (64-bit)

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn’t already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I’m willing to open a PR

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

1reaction
immakdascommented, Jan 21, 2022

have the same bug with 3rd slide in the Chrome 98 and all slides in Safari 15.2 swiperjs 7.4.1

0reactions
georgeiliadis91commented, Dec 8, 2022

This issue is still happening. To give a little more context, it happens on every 3rd and 4th slide.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Grid system - Bootstrap
Use our powerful mobile-first flexbox grid to build layouts of all shapes and ... In a grid layout, content must be placed within...
Read more >
Building modern sliders with HTML, CSS, and Swiper
Swiper is a wonderful tool for creating sliders. Learn how to use it to build interactive, intuitive elements that work natively anywhere.
Read more >
Bootstrap 5 grid system - examples and tutorial
Bootstrap's grid system uses a series of containers, rows, and columns to arrange and align content. It's built with flexbox and is fully...
Read more >
Responsive and Flexible Mobile Touch Slider - Swiper
Can be used as a jQuery plugin. Features: Responsive design; Small and fast; Fully accessible; Supports any html elements, not only images ...
Read more >
Ion-Slides: Mobile Touch Slider with Built-In & Custom Animation
The following documentation applies to the ion-slides component. Custom Animations​. By default, Ionic slides use the built-in slide animation effect. Custom ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found