akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.62k stars 2.09k forks source link

Use `focusOnChange` where appropriate #2364

Open infomofo opened 2 months ago

infomofo commented 2 months ago

Fixes #1935

In slick-carousel version 1.8.0 a feature was added called focusOnChange which made the behavior previously bundled into focusOnSelect more specialized. See https://github.com/kenwheeler/slick/pull/3032.

Based on the behavior it is being used for in react-slick, this is a more accurate prop to use for this behavior.

See also a thread in slick-carousel Github issues where they addressed this issue by splitting the old prop into two new ones. https://github.com/kenwheeler/slick/issues/3046