Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload file explorer cause all roots disappear from navigation but current opening root. #71

Open
manh4995v2 opened this issue Feb 21, 2022 · 2 comments

Comments

@manh4995v2
Copy link

This happends with nuget 1.3.6 and elfinder 2.1.60
I temporarily fix this by add: customData: {init: 1} in JS code that create elFinder instance.

@manh4995v2
Copy link
Author

The same happends with elfinder 2.1.49.
I believe that in elFinder.NetCore.Drivers.FileSystem.FileSystemDriver.cs, the below code, that lists root in response, is missing from method OpenAsync
foreach (var item in Roots)
{
response.Files.Add(await BaseModel.CreateAsync(new FileSystemDirectory(item.RootDirectory), item));
}

@gordon-matt
Copy link
Owner

Thanks for your pointing out a potential bug. Please fork this project, make the change to add multiple roots to demo the problem.. and comment here with the link to your fork.. I'll try to look at it as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants