Unable to create a new topic because it's a substring of an existing one #3428

Closed
opened 2025-11-02 05:12:39 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @ViViDboarder on GitHub (Jun 5, 2019).

Description

After creating a topic such as prefix-suffix and saving (on any repo), it becomes impossible to create a new topic named simply prefix because Gitea forces completion to prefix-suffix.

Screenshots

5148376377065472

Originally created by @ViViDboarder on GitHub (Jun 5, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.8.2 - Git version: 2.17.1 - Operating system: docker - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (https://try.gitea.io/iamthefij/test-tag-issue) - [ ] No - [ ] Not relevant - Log gist: ## Description After creating a topic such as `prefix-suffix` and saving (on any repo), it becomes impossible to create a new topic named simply `prefix` because Gitea forces completion to `prefix-suffix`. ## Screenshots ![5148376377065472](https://user-images.githubusercontent.com/137025/58923084-ebee9580-86f2-11e9-9ef2-4cf0378821de.png)
GiteaMirror added the topic/uitype/bug labels 2025-11-02 05:12:39 -06:00
Author
Owner

@Cherrg commented on GitHub (Jun 28, 2019):

one hotfix/workaround: add prefix first, then add prefix-suffix

i will take a look on the problem

@Cherrg commented on GitHub (Jun 28, 2019): ~~one hotfix/workaround: add `prefix` first, then add `prefix-suffix`~~ i will take a look on the problem
Author
Owner

@mrsdizzie commented on GitHub (Jun 28, 2019):

Testing this, it isn't impossible to create the "prefix" tab, but the behavior of the suggestions dropdown is bad:

  • It auto selects the first suggestion when it shouldn't select any (just display them)
  • It actually returns the selection on hitting escape instead of closing the suggestions

A work around (if anybody else sees) is to first use the up arrow to unselect the suggestion and then you can type prefix and hit enter as normal.

@mrsdizzie commented on GitHub (Jun 28, 2019): Testing this, it isn't impossible to create the "prefix" tab, but the behavior of the suggestions dropdown is bad: * It auto selects the first suggestion when it shouldn't select any (just display them) * It actually returns the selection on hitting escape instead of closing the suggestions A work around (if anybody else sees) is to first use the up arrow to unselect the suggestion and then you can type prefix and hit enter as normal.
Author
Owner

@Cherrg commented on GitHub (Jun 28, 2019):

thanks for the note about escape key behavior

PR should fix both

@Cherrg commented on GitHub (Jun 28, 2019): thanks for the note about escape key behavior PR should fix both
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3428