uptick / react-keyed-file-browser

Folder based file browser given a flat keyed list of objects, powered by React.
MIT License
298 stars 144 forks source link

onselect file return but folder return undefined #163

Open StarStuff15 opened 3 years ago

StarStuff15 commented 3 years ago

folder select return undefined onFolderSelect and onSelect

rodriguezd commented 3 years ago

Just ran into same issue. Not sure if it's a bug (suspect it is) or if I'm just missing something

InsOpDe commented 3 years ago

Problem seems to show up if you use keys which start with a / i.e.

media/images/giraffe.png

works but

/media/images/giraffe.png

gives you undefined.

I still consider this as a bug

rodriguezd commented 3 years ago

@InsOpDe I was starting to suspect something like that but hadn't tried it out yet. May help me get past the roadblock. Thanks

StarStuff15 commented 3 years ago

@InsOpDe here is my key key: "66/2-thumb.jpg" still, I get undefined

InsOpDe commented 3 years ago

you might want to look into the storybook examples