[bug]: Pressing enter in the labels dropdown creates a new label even if there's one with a matching name
Is there an existing issue for this?
- [x] I have searched the existing issues
Current behavior
I expect that pressing enter in the Labels dropdown selects a label if possible, but it creates one instead
Apologies for poor screen cropping
https://github.com/user-attachments/assets/92fbd824-bf65-465b-a723-ffb80ebd3547
Steps to reproduce
- Go to kanban view
- Click on any work item
- Click "labels" to choose the label
- Type a label name and press enter
Environment
Production
Browser
Mozilla Firefox
Variant
Cloud
Version
v0.26.1
Hi @vihar and @pushya22, would love to work on this issue; i see u two are assigned on most issues (recent) so maybe i could be of a little help ..
@Wizzerinus This issue is occurring because our labels are case-sensitive. When you search using lowercase characters, it creates a new label instead of matching the existing one.
Personally I think it's a bit unintuitive when "enter" does an action that does not happen if you click the currently selected option in the dropdown
Thanks @Wizzerinus. We will try the improve the UX here.
Agree with @Wizzerinus. If I hit enter here it should not create an new "ma" label (current behavior). It should select "mat"
If what I've typed doesn't exist as a label there should be a 3rd option that I could click or arrow down to do so.