Skip to content

Tree view: clicking in empty space between nodes causes phantom selection without navigation #1472

@Ovgodd

Description

@Ovgodd

Bug Report

When clicking in the empty space between nodes in the document tree, the nearest node gets visually selected but the document doesn't open/navigate. This creates a "phantom selection" state where the UI shows a selected node that doesn't match the currently displayed document. ( happens both on Fichier and Docs )

Problematic behavior

This "phantom selection" shows a selected node that doesn't match the currently displayed document.

Expected behavior/code

  • Clicking directly on a tree node: selects AND navigates to the document or
  • Clicking in empty space between nodes: should do nothing (no selection, no navigation)

Steps to Reproduce

  1. have 2 or more nodes
  2. Clic between them
  3. Et voila !

Environment

  • Docs version:
  • Instance url:

Possible Solution

  • Open the current document, or
  • Remove the feedback when clicking between documents

The fix should be applied in the UI Kit so it benefits all applications using it.t

Additional context/Screenshots

navigationtree.mp4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions