Skip to content

Commit

Permalink
Merge pull request #1876 from akiran/keys-aug20
Browse files Browse the repository at this point in the history
focus the slide selected in focusOnSelect mode
  • Loading branch information
akiran authored Aug 20, 2020
2 parents a43f109 + 9e6235c commit 775d83b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/inner-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,10 @@ export class InnerSlider extends React.Component {
this.slideHandler(targetSlide);
}
this.props.autoplay && this.autoPlay("update");
if (this.props.focusOnSelect) {
const nodes = this.list.querySelectorAll(".slick-current");
nodes[0] && nodes[0].focus();
}
};
clickHandler = e => {
if (this.clickable === false) {
Expand Down

0 comments on commit 775d83b

Please sign in to comment.