Skip to content

Bug: New task created under wrong project when using + button in sidebar #1400

@arnestrickmann

Description

@arnestrickmann

Bug Report

Description
Clicking the + button next to a project in the left sidebar sometimes creates the new task under a different project — often the topmost one — instead of the project the button belongs to. The behavior is inconsistent: sometimes it works correctly, sometimes it doesn't.

Steps to Reproduce

  1. Have multiple projects in the left sidebar
  2. Click the + button on a project that is not the first/topmost project
  3. Observe that the new task may appear under a different project

Expected Behavior

The + button should always create a task under the project it's visually associated with.

Actual Behavior

The task is inconsistently created under the wrong project (often the topmost one). This suggests the click handler may be passing the wrong project ID, or there's a state issue where the "active project" context doesn't match the button that was clicked.

Likely Cause

The + button's click handler may be reading a global "selected project" state rather than using the project ID from the specific list item it belongs to. A race condition or stale closure could also explain the inconsistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions