Skip to content

Opening new tab from search result toggles truncatable #1260

@ybnd

Description

@ybnd

Describe the bug
Opening an Item page in a new tab from a <ds-item-search-result-list-element> can toggle its <ds-truncatable> component

To Reproduce
Steps to reproduce the behavior:

  1. Open demo7.dspace.org/search and look for an Item with a truncated description
  2. Open the Item's page in a new tab ~ Right click > Open in new tab on the title link
    • Behaves as expected
  3. Open the Item's page in a new tab ~ Middle click or Ctrl/Cmd + Left click on the title link
    • The page opens in a new tab, but the <ds-truncatable> component is toggled at the same time

Expected behavior
The the <ds-truncatable> component should not get toggled when clicking on the title

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions