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

Tags Field / Tagify Bug #3564

Open
4 of 11 tasks
rctneil opened this issue Dec 31, 2024 · 0 comments
Open
4 of 11 tasks

Tags Field / Tagify Bug #3564

rctneil opened this issue Dec 31, 2024 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@rctneil
Copy link
Contributor

rctneil commented Dec 31, 2024

Describe the bug

If I tag a record with a tag of "ABC" using the tags field, then I edit the record and click the tags field, the suggestions dropdown WILL NOT show "ABC" as it's already an active tag (This is correct).

However, if you click the "X" on the "ABC" tag to remove it, then check the suggestions list, "ABC" is shown in alphabetical order, BUT ALSO shows at the very end of the list too.

Steps to use in the reproduction repository

Steps to reproduce the behavior:

  1. Add a tags field to a resource with suggestions
  2. Add one or two of the suggestions as tags and save
  3. edit record, click the "x" on an added tag.
  4. Check the suggestions list, that tag is now listed twice, once in it's usual place and once at the very end.

System configuration

Avo version: 3.13.6

Rails version: 7.2.2

Ruby version: 3.3.4

License type:

  • Community
  • Pro
  • Advanced

Are you using Avo monkey patches, overriding views or view components?

  • Yes. If so, please post code samples.
  • No

Screenshots or screen recordings

First shows the suggestions list with the "Dark Ride" tag being active.
Image

Second shows the suggestions list after the "Dark Ride" tag has been removed and shows it back in it's correct alphabetical place.
Image

Third shows the suggestions list with "Dark Ride" showing at the end of the list. Not correct!
Image

Additional context

Can be reproduced here: https://main.avodemo.com/avo/resources/courses

Impact

  • High impact (It makes my app un-usable.)
  • Medium impact (I'm annoyed, but I'll live.)
  • Low impact (It's really a tiny thing that I could live with.)

Urgency

  • High urgency (I can't continue development without it.)
  • Medium urgency (I found a workaround, but I'd love to have it fixed.)
  • Low urgency (It can wait. I just wanted you to know about it.)
@Paul-Bob Paul-Bob added the Bug Something isn't working label Dec 31, 2024
@Paul-Bob Paul-Bob moved this to To Do in Issues Dec 31, 2024
@Paul-Bob Paul-Bob self-assigned this Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: To Do
Development

No branches or pull requests

2 participants