Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Avoid creation of duplicate terms in typeahead input #11060

Merged
merged 5 commits into from
Nov 21, 2024

Conversation

daun
Copy link
Contributor

@daun daun commented Nov 5, 2024

Fix an issue with the typeahead input that allows creating a new taxonomy term even if that term already exists. Both the existing as well as the newly created term can be selected and submitted.

This PR is an attempt to solve that by re-using existing options before creating new ones. The option to create new terms will now only show up if no existing term matches the input.

Partially closes #11019.

@jasonvarga jasonvarga merged commit b02a86d into statamic:5.x Nov 21, 2024
16 checks passed
@daun daun deleted the fix/term-typeahead-duplicate-creation branch November 22, 2024 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typeahead field shows duplicate terms and corrupts data on save
2 participants