Skip to content

Filelist: Intended behavior that scrollTo opens detailsView? #12989

@te-online

Description

@te-online

Just a quick question if this is intended behavior, it seems a bit odd to me:

Steps to reproduce

  1. Create a new file with the files_linkeditor app (for clarity: it uses the filelists core addMenuEntry method, hence the issue in this repository). (see Display glitch with sidebar/details view, when creating a new link file te-online/files_linkeditor#18)
  2. The scrollTo method is invoked on the newly created file.
  3. The detailsView pane is opened and focused.

Expected behaviour

For new files, the scrollTo method is invoked, the file list scrolls, the new file is highlighted, but the detailsView pane stays hidden until the user clicks Details.

Actual behaviour

The detailsView pane is opened and steals focus. (see https://github.com/nextcloud/server/blob/master/apps/files/js/filelist.js#L2969)

Rest...

irrelevant for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions