Skip to content

[BUG] : Sidebar Collapses When Clicking Empty Areas Instead of Only the Collapse Button #2364

Description

@NiranjanRSoorej06

Summary

The sidebar collapses when clicking on empty/non-interactive areas within the sidebar. It should only collapse when the dedicated collapse (<<) button is clicked.

Why this matters

Users may accidentally collapse the sidebar while navigating or interacting with the sidebar, leading to an unexpected and frustrating user experience.

Reproduction steps

  1. Launch the application.
  2. Keep the sidebar expanded.
  3. Click on any empty area within the sidebar (not on a navigation item or button).
  4. Observe that the sidebar collapses.

Expected behavior

The sidebar should remain expanded when clicking anywhere inside the sidebar except the dedicated collapse (<<) button.

Actual behavior

Clicking on non-interactive/empty areas within the sidebar causes it to collapse, even though the collapse button was not clicked.

Scope

Suggested files or directories:

  • Sidebar component
  • Sidebar event handlers
  • Layout component

Related route, page, component, or script:

  • Sidebar
  • Collapse Button

Evidence

  • Sidebar collapses after clicking empty space inside the sidebar.
  • Screenshot attached.
Image

Environment

  • OS: Windows 10
  • Browser: Chrome
  • Python Version: N/A
  • Node Version: N/A
  • Docker Version: N/A

Definition of done

  • Bug is reproducible from the issue description
  • Sidebar only collapses when the dedicated collapse (<<) button is clicked
  • Clicking empty/non-interactive areas within the sidebar does not change its state
  • Relevant tests are added or updated if applicable

Additional context

The collapse action appears to be bound to the sidebar container rather than being limited to the dedicated collapse button.

Metadata

Metadata

Labels

priority:mediumImportant issue with normal urgencytype:bugBug fix work category bonus label

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions