minhtranite/react-photoswipe

Unknown prop `options` on <div> tag

AlessandroAnnini opened this issue · 1 comments

I am trying to use react-photoswipe in a Meteor project
and this is the error that i get:

modules.js?hash=0cc871a…:21513Warning: Unknown prop `options` on <div> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in div (created by PhotoSwipeGallery)
    in PhotoSwipeGallery (created by LibraryImages)
    in div (created by LibraryImages)
    in LibraryImages (created by Connect(LibraryImages))
    in Connect(LibraryImages) (created by RouterContext)
    in div (created by App)
    in App (created by Connect(App))
    in Connect(App) (created by RouterContext)
    in RouterContext (created by Router)
    in Router (created by Root)
    in MuiThemeProvider (created by Root)
    in Provider (created by Root)
    in Root

I import PhotoSwipeGallery and react-photoswipe/lib/photoswipe.css
my option object is:

const options = {
  closeOnScroll: true
};

i cannot understand where is the problem.. am i missing something?
Thanks

Fixed on v1.2.0