Skip to content

Commit ec4042f

Browse files
committed
handling lost focus in case of fade
fixes: #1017
1 parent 071a29c commit ec4042f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mixins/helpers.js

+4
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ var helpers = {
178178
this.props.afterChange(animationTargetSlide);
179179
}
180180
delete this.animationEndCallback;
181+
if (this.props.fade) {
182+
const focusableSlide = ReactDOM.findDOMNode(this.track).children[animationTargetSlide]
183+
focusableSlide.focus()
184+
}
181185
};
182186

183187
this.setState({

0 commit comments

Comments
 (0)