uptick/react-keyed-file-browser

onselect file return but folder return undefined

Opened this issue · 5 comments

folder select return undefined onFolderSelect and onSelect

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

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

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

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

you might want to look into the storybook examples