Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to select an Item onClick or Ontap #51

Closed
abhilashsajeev opened this issue May 18, 2015 · 3 comments
Closed

How to select an Item onClick or Ontap #51

abhilashsajeev opened this issue May 18, 2015 · 3 comments

Comments

@abhilashsajeev
Copy link

I would like to use this, but need support for onClick and onTap event. When clicked that item should be selected. I see a option focusOnselect but it not seems to work
screenshot from 2015-05-18 16 09 08
like in following image

@akiran
Copy link
Owner

akiran commented Aug 21, 2015

Tap or click on slides is working now

@akiran akiran closed this as completed Aug 21, 2015
@abhilashsajeev
Copy link
Author

Thats great. Thank you.

@scriptype
Copy link
Contributor

Hi, focusOnSelect doesn't function for my case. I'm using react.0.13.3 and react-slick.0.8.0

I'm not sure if I'm missing a point. I'm expecting the item to be centered when selected.

sliderSettings:

{
  "centerMode": true,
  "focusOnSelect": true,
  "infinite": false,
  "dots": true,
  "arrows": false,
  "speed": 500,
  "slidesToScroll": 1,
  "slidesToShow": 5,
  "responsive": [
    {
      "breakpoint": 1024,
      "settings": {
        // same as defaults but with different `slidesToShow`
      }
    },
    {
      "breakpoint": 600,
      "settings": {
        // same as defaults but with different `slidesToShow`
      }
    },
    {
      "breakpoint": 480,
      "settings": {
        // same as defaults but with different `slidesToShow`
      }
    },
  ]
}

initializing:

<Slider {...sliderSettings}>
  {
    this.props.items.map((item) =>
            <div key={item.title}>
              <Item {...item} />
            </div>
    )
  }
</Slider>

where <Item /> is:

<div>
  <h3>
    {this.props.title}
  </h3>

  <p>
    {this.props.description}
  </p>
</div>

scriptype added a commit to scriptype/react-slick that referenced this issue Oct 18, 2015
 - Add an example of focusOnSelect usage to demos
 - Update supported properties table
 - Use ReactDOM on rendering demos
jasonsalzman added a commit to jasonsalzman/react-slick that referenced this issue Apr 26, 2016
* 148:
  Support `focusOnSelect` fixes akiran#51  - Add an example of focusOnSelect usage to demos  - Update supported properties table  - Use ReactDOM on rendering demos

Conflicts:
	README.md
	src/track.jsx
jasonsalzman added a commit to jasonsalzman/react-slick that referenced this issue Apr 26, 2016
* original/master:
  build
  fix invalid currentSlide state with {infinite: true, autoplay: true, useCSS: true}
  add back child's className prop when cloning pre/post slides in infinite mode
  Support `focusOnSelect` fixes akiran#51  - Add an example of focusOnSelect usage to demos  - Update supported properties table  - Use ReactDOM on rendering demos

Conflicts:
	dist/react-slick.js
	dist/react-slick.min.js
	src/track.jsx
abpai pushed a commit to finboxio/react-slick that referenced this issue Jul 24, 2016
 - Add an example of focusOnSelect usage to demos
 - Update supported properties table
 - Use ReactDOM on rendering demos
suheb pushed a commit to suheb/react-slick that referenced this issue Aug 16, 2016
 - Add an example of focusOnSelect usage to demos
 - Update supported properties table
 - Use ReactDOM on rendering demos
suheb pushed a commit to suheb/react-slick that referenced this issue Aug 16, 2016
 - Add an example of focusOnSelect usage to demos
 - Update supported properties table
 - Use ReactDOM on rendering demos
suheb pushed a commit to suheb/react-slick that referenced this issue Aug 16, 2016
 - Add an example of focusOnSelect usage to demos
 - Update supported properties table
 - Use ReactDOM on rendering demos
suheb pushed a commit to suheb/react-slick that referenced this issue Aug 16, 2016
 - Add an example of focusOnSelect usage to demos
 - Update supported properties table
 - Use ReactDOM on rendering demos
suheb pushed a commit to suheb/react-slick that referenced this issue Aug 16, 2016
 - Add an example of focusOnSelect usage to demos
 - Update supported properties table
 - Use ReactDOM on rendering demos
drdah123 pushed a commit to drdah123/react-slick that referenced this issue Apr 16, 2023
Bumps [jest](https://github.com/facebook/jest) from 24.9.0 to 26.4.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](jestjs/jest@v24.9.0...v26.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants