yaodingyd / react-flickity-component

A React.js component for using @desandro's Flickity
314 stars 51 forks source link

Fullscreen not working #89

Closed 0sserc closed 5 months ago

0sserc commented 4 years ago

This might not be related to this library, but as the flickity-fullscreen package hasn't been updated for a year, just decided to post here.

We are using flickity in one of our projects, and added the package for fullscreen flickity-fullscreen, it had been working for a while, but like a month ago it suddenly stopped working, and when we call this.flkty.toggleFullscreen();

it returns: TypeError: _this2.flkty.toggleFullscreen is not a function

As I said, it worked before, and we never changed our code

this.flkty.previous(); or this.flkty.next(); still work smoothly.

Any clues?

yaodingyd commented 4 years ago

The last release happened two months ago so I doubt it was our issue. Nevertheless if you could provide a minimal sandbox to reproduce your issue I'm happy to help you debug.

MontoyaAndres commented 3 years ago

hi, any solution about this?

yaodingyd commented 3 years ago

@MontoyaAndres can u provide a sandbox?

yaodingyd commented 5 months ago

Free feel to reopen with a sandbox link

BharathaanSukumaran commented 5 months ago

Hi not sure if a solution to this has been discovered but the reason why this wasn't working is because the toggleFullscreen method has been removed. A similar effect can be achieved using the resize method