The getOptionsForValue function was using the original value of maxVisible when the parent changed the prop. This makes sure that the function uses the new value and displays the correct number of visible items when the component is re-rendered. All tests pass.
This fixes #185
The
getOptionsForValue
function was using the original value ofmaxVisible
when the parent changed the prop. This makes sure that the function uses the new value and displays the correct number of visible items when the component is re-rendered. All tests pass.