Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Asset uploaded via asset modal are not selected if file name is not visible #2812
Assets uploaded via the asset modal aren't selected if their file name would be positioned in a way that it would need to be scrolled to. The uploaded asset should always be selected, regardless of the users' sort order.
Steps to reproduce
[Requires that enough assets exist in a volume to require scrolling in the asset modal.]
@andris-sevcenko I think to fix this, when a new file is uploaded, we should automatically change the index to be sorted by Date Uploaded - Descending, so that we can be sure that the newly-uploaded asset will be selected.
If that means that previously-selected assets might lose their selection if they go out of view, so be it; preference should be given to the newly-uploaded asset(s).