Comments (8)
@nullhook strange one - I had already removed static
but it made no difference, but now I've added in a setTimeout
it works: hacky but I can't get it to work any other way. Thanks for the suggestion.
from react-flickity-component.
Are you using NextJS?
from react-flickity-component.
@nullhook yes... what do you reckon is up? SSR issue?
from react-flickity-component.
It should work if you remove the static
prop from the Flickty
component.
When you add static
prop, it renders the children inside Portal.
P.S - If you want to keep the static
prop, delay the focus, it should work. However, I feel adding a setTimeout
feels hacky.
from react-flickity-component.
Do you have reloadOnUpdate
prop as true?
from react-flickity-component.
No, these are my props:
<Flickity
className="EntryHeroSlideshow__cells"
options={flickityOptions}
disableImagesLoaded
flickityRef={c => (flickity.current = c)}
>
and flickityOptions
:
const flickityOptions = {
setGallerySize: false,
prevNextButtons: false,
lazyLoad: 2,
pageDots: false,
autoPlay: duration,
wrapAround: true,
pauseAutoPlayOnHover: false,
};
from react-flickity-component.
Try removing the disableImagesLoaded
prop and see if it works.
Are you using that prop for something?
from react-flickity-component.
Nvm, removing static
prop raises other issues such as routing to dynamic pages in NextJS.
from react-flickity-component.
Related Issues (20)
- 'Module not found, can't resolve 'flickity' with CRA HOT 1
- Flickity-extensions support (hash/fullscreen/etc) HOT 5
- Using with flickity-as-nav-for - Typescript HOT 3
- prev/next arrow size problem in firefox browser HOT 1
- npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.14.0" from [email protected] HOT 7
- Force reload HOT 1
- Option "pauseAutoPlayOnHover" missing.
- Doesn't work well on Safari iOS 15 HOT 2
- Please i've been having issue using the flickityRef, i can't wrap my head around it HOT 1
- Storybook HOT 1
- after updating to flickity 3.0 carousel started to display slides one on top of the other HOT 1
- Updating flickity peerDependency and devDependency to 3.0.0 HOT 1
- Updating peer dependencies to support React v. 18 HOT 20
- Error children with typescript HOT 2
- [V4] ReferenceError: window is not defined HOT 4
- v4 does not include TypeScript type definitions HOT 1
- Is it possible to configure flickity to only show x amount of slides?
- reloadOnUpdate behaviour is not intuitive HOT 2
- warning " > [email protected]" has unmet peer dependency "flickity@^2.2.1".
- typescript import HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-flickity-component.