OdooCommunityWidgets / website_multi_image

Odoo Website Multi-Image Module
MIT License
29 stars 34 forks source link

focusOnSelect doesn't work when a filter is applied to synced sliders #22

Closed a0c closed 9 years ago

a0c commented 9 years ago

A very simple issue which could be simulated like this: (+ see Test Case in jsFiddle below)

Set up

Once the filter has been applied to both sliders, clicking on slider-nav items should navigate to the same items in slider-for. Instead, Slick navigates to a wrong item, in some crazy manner.

Test Case

Try clicking on slide3 text => and then on slide7 in this jsFiddle test case.

Bug Explanation

Slide attribute index, which is used for navigation, cannot be relied on once a filter has been applied. Natural ordering of slides should be used instead. Fix is to follow...