Hi,
I am trying to setup the FileManager with dynamic loading, based on the snippet:
https://snippet.webix.com/jvah7yoy
Unfortunately I get an error in ProcessPath when I try to set an initial path. The error is the same if I create the component with the path property set in the config (path: "/Code") or if I try to modify it after creation:
$$("filemanager").getState().path = "/Code"
It seems like it is generally working, but in the console an error is thrown.
The modified example can be tested here:
https://snippet.webix.com/1u5gnss9
Kind regards,
Gerhard Seiler
Comments
Hello @GerhardSeiler,
The error you are seeing is due to the async nature of data processing, courtesy of the provided customization (dynamic data loading). Essentially, the component cannot process the newly set path in time (data processing is completed after the path has been processed, which is why you are seeing this error in the first place). A simple workaround would be to set the path after a slight delay, in order for the data to get processed first: https://snippet.webix.com/7hmkow5j.