-
Notifications
You must be signed in to change notification settings - Fork 219
Description
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
- Have multiple projects in the left sidebar
- Click the
+button on a project that is not the first/topmost project - 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.