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 select mode UX glitches #3317

Open
4 of 11 tasks
pjmuller opened this issue Oct 9, 2024 · 1 comment · May be fixed by #3381
Open
4 of 11 tasks

tags field select mode UX glitches #3317

pjmuller opened this issue Oct 9, 2024 · 1 comment · May be fixed by #3381

Comments

@pjmuller
Copy link

pjmuller commented Oct 9, 2024

Describe the bug

see loom https://www.loom.com/share/99ec158c8a86415a8b79a680b57b4793
loom 2: https://www.loom.com/share/bd47d51e8aad4764aee4fa8e04f46dfd

  1. when clicking the "x" and then clicking out of the element it does not close
  2. whenever you selected an item, it stops doing the fetch_values_from call until you fully clear and click "x"
  3. whenever fetch_values_from is working, when you do backspace you remove ALL of your characters while I would expect
  4. copy paste in the field is not working

Steps to Reproduce

Code I used in my loom

def fields
    field :id, as: :tags, mode: :select, suggestions: -> { 
      [
        {value: "1", label: "One"},
        {value: "2", label: "Two"},
      ]
     },
     format_using: -> {[{value: value, label: value}]},
     enforce_suggestions: true,
     close_on_select: true
    
    field :id_2, for_attribute: :id, as: :tags, mode: :select,
      fetch_values_from: "/t/dev_org/avo/associations/people",
      format_using: -> { [{value: value, label: value}]},
     enforce_suggestions: true,
     close_on_select: true

System configuration

Avo version: 3.13.1

Rails version: 7.2.1

Ruby version: 3.2.2

License type:

  • Community
  • Pro
  • Advanced

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

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

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.)
Copy link
Contributor

This issue has been marked as stale because there was no activity for the past 15 days.

@github-actions github-actions bot added the Stale label Oct 26, 2024
@adrianthedev adrianthedev linked a pull request Nov 2, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants