express-labs / pure-react-carousel

A highly impartial suite of React components that can be assembled by the consumer to create a carousel with almost no limits on DOM structure or CSS styles. If you're tired of fighting some other developer's CSS and DOM structure, this carousel is for you.

Home Page:https://express-labs.github.io/pure-react-carousel/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<select> elements inside of <Slide/>

d-sanderson opened this issue · comments

I have a carousel component where I have select elements with the following markup. I was able to style the carousel to fit my use-case, but the select elements are not selectable onTouch or onClick. I tried changing styling and z-index but have not been able to make the select element interactive within the carousel. Is this possible with pure-react-carousel?

      <CarouselProvider
        infinite={true}
        touchEnabled={true}
        visibleSlides={2}
        naturalSlideWidth={100}
        naturalSlideHeight={100}
        totalSlides={6}
      >
        <Slider>
          <Slide index={0} className="text-center">
           <select>
                         <option>1</option>
                         <option>2</option>
                         <option>3</option>
           </select>
          </Slide>
        </Slider>
        <ButtonBack className="absolute top-8 -left-2"><img src={ArrowLeft}/></ButtonBack>
        <ButtonNext className="absolute top-8 -right-3"><img src={ArrowRight}/></ButtonNext>
      </CarouselProvider>````
commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.