Project dropdown does not display selected value when creating a new project
Describe the bug I have noticed a ui issue when choosing "+ Create new project…" from the Project dropdown while adding a task, a text input field for entering a new project name appears below the dropdown(which is fine and expected). However, the dropdown still shows "Select a project" and becomes blank while typing the new project name, which is confusing.
To Reproduce Steps to reproduce the behavior:
- Click Add Task
- Open the Project dropdown
- Select + Create new project…
- Type a project name
- Notice that the dropdown value becomes empty and does not show the new project name
Expected behavior
The dropdown should display the 'new project name/Create new project'… as the active selection while typing.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
Hello @Vasist10 , I would like to take this task, I can fix the behaviour of dropdown
I reviewed the code, problem is in AddTaskDialog.tsx, assign me the issue I can PR! Proposed Solution: Show "+ Create new project…" when the user first selects that option Show "New: [project name]" as the user types the new project name This provides clear visual feedback about what's being entered
Hello @its-me-abhishek , PR generated
@its-me-abhishek You can merge it safely