Xiao Lin
Xiao Lin
That looks like a CSS issue. You'll need to import the CSS file for the component.
They are in https://github.com/xiaolin/react-image-gallery/blob/master/styles/scss/image-gallery.scss. The `left` and `right` classnames are not specific enough so making it more specific should fix the issue.
Thanks for reporting, I've not had a chance to test react18's new render. Will look into it when I get a chance. Fastest way is to open a PR if...
This should be fixed in v1.2.10
I'm not sure if this may help but you can access `getCurrentIndex()` if you have a ref to attached to the gallery component.
I noticed that and it seems to only be happening on mobile browsers. I'm not sure whats going on there.
If anyone finds the cause please reopen.
FWIW, I tried to reproduce using the config below and was not able to replicate the issue, is it isolated to webpack < 5?? package.json ``` "react-image-gallery": "^1.1.1", "terser-webpack-plugin": "^5.3.6",...
Fixed in https://github.com/xiaolin/react-image-gallery/pull/751
Is this still an issue? If so, can you list steps to reproduce this, listing what currently happens and what you expect to happen?