Skip to content

fix: don't select a row when its link starts a navigation - #4408

Merged
kulmann merged 2 commits into
mainfrom
fix/row-click-after-link-navigation
Nov 10, 2026
Merged

kulmann merged 2 commits into
mainfrom
fix/row-click-after-link-navigation

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

Clicking an EPUB in a file list opens the reader on the first click again when the URL has scrollTo (e.g. after closing a viewer). The link click also bubbled up to the row and selected it, which removed scrollTo from the URL and cancelled the navigation while the reader was still loading. A click that a link already handles no longer selects the row; ctrl/shift multi-select and opening in a new tab still select as before.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: a row or tile click that a link already handled doesn't select, a plain click still does (both fail without the fix)
  • test case 2: browser: EPUB opens on the first click after closing a preview, from a permanent link and from a scrollTo URL, in table and tiles on desktop and Pixel 7
  • test case 3: browser: row click, ctrl/shift multi-select, checkboxes, open in new tab, folder links, tag links, keyboard navigation, text editor and PDF first open unchanged

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@kulmann
kulmann merged commit 3d808dd into main Nov 10, 2026
28 checks passed
@kulmann
kulmann deleted the fix/row-click-after-link-navigation branch November 10, 2026 11:26
@openclouders openclouders mentioned this pull request Nov 10, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking an EPUB in a file list does nothing the first time when the URL has scrollTo

3 participants