uptick/react-keyed-file-browser

Programmatically scroll to file/folder

Closed this issue · 2 comments

Hi, is there a way to scroll to a particular file or folder in the file browser component? My use case is that I want to open a certain folder by default when the component is launched. However I also want to scroll to that folder's location in the folder list. Is this possible?

Currently there is native no way to do this, however I think you might be able to explore using the fileRenderer prop and then wrapping it with a ref to use the scrollIntoView function.

Closing due to inactivity. If the problem still persists, please feel free to open the issue again :)