Skip to content

Commit

Permalink
Trigger click event when scrollTo is set
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed May 25, 2021
1 parent 677dcad commit 778aa49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -3202,6 +3202,9 @@
if (file.length === 1) {
_.defer(function() {
this.showDetailsView(file[0]);
// Trigger a click event for the file.
const fileElement = this.findFileEl(file[0])[0]
$(fileElement).find('a.name').click()
}.bind(this));
}
this.highlightFiles(file, function($tr) {
Expand Down

0 comments on commit 778aa49

Please sign in to comment.