You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should show 1.3 slides below 700px, then 3 slides up until 950, and after 5.
It works strange. When you load page at > 950 px, shows 1.3 slides on that breakpoint. Others are ok.
When you load at > 700 that one is broken, bigger is ok.
<500 all are ok. Seems like if it loads non-mobile, responsive breakpoint first it copies default opts to it...
This is what object looks like after init on > 950:
I looked a bit through your code and glider-js docs, I think the problem is in
// When the props update, update the gliderReact.useEffect(()=>{if(!gliderRef.current){return;}gliderRef.current.setOption(makeGliderOptions());gliderRef.current.refresh(true);},[props]);
setOption(), and that it needs to take 2nd argument as true, to make options global.
Can you check it?
The text was updated successfully, but these errors were encountered:
I have this codesandbox
with a simple configuration:
It should show 1.3 slides below 700px, then 3 slides up until 950, and after 5.
It works strange. When you load page at > 950 px, shows 1.3 slides on that breakpoint. Others are ok.
When you load at > 700 that one is broken, bigger is ok.
<500 all are ok. Seems like if it loads non-mobile, responsive breakpoint first it copies default opts to it...
This is what object looks like after init on > 950:
I looked a bit through your code and glider-js docs, I think the problem is in
setOption(), and that it needs to take 2nd argument as true, to make options global.
Can you check it?
The text was updated successfully, but these errors were encountered: