vitalii-andriiovskyi / ngx-owl-carousel-o

owl-carousel for Angular >=6
MIT License
177 stars 51 forks source link

Carousel becomes un-interactable and rebuilds on hover or click #193

Open luarbcruisetopic opened 2 years ago

luarbcruisetopic commented 2 years ago

Hello,

I just migrated from angular version 11 to angular version 13, after doing so the owl-carousel-o started to behave very strange but only on the carousel that I pass the options through a function/method.

Can you tell me if you know how to fix this or a workaround because all my app is not working correctly ?

regards.

vitalii-andriiovskyi commented 2 years ago

@luarbcruisetopic

I added the autorefresh of the carousel in the case when options change. Here is the description

If your method constantly returns new object, the carousel will be rerendering constantly. So you need to find a way to call your fuction/method only in specific situations (when it is needed). As I guess it is called on every Angular change detection.