Open
Description
Bug report
Summary
In PR #15227, the folder was selected, the folder is highlighted in the list, by condition:
if (n.id == this.config.openTo) {
n.select();
}
Before this PR folders were not highlighted in the list. Now it works as expected:
However, if the source has a lot of folders (in my case> = 82), then the folder will not be selected in the list. It happens very rarely (see migx TV).
And it's not clear why it works like this.
We need to understand that this affects only the visual display of the folder in the list, and does not affect the upload or anything else.
Step to reproduce
- Create a large number of folders in the media source, for example, 100.
- Set TV and save the resource.
- Open the resource again and change TV - the folder will not be selected in the list.
Observed behavior
The folder will not be selected in the list.
Expected behavior
The folder must be selected in the list.
Related issue(s)/PR(s)
Environment
MODX 2.x