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

[BUG] Tags not working for input with enum collection #481

Open
fedeagripa opened this issue Aug 25, 2023 · 0 comments
Open

[BUG] Tags not working for input with enum collection #481

fedeagripa opened this issue Aug 25, 2023 · 0 comments
Labels

Comments

@fedeagripa
Copy link

Describe the bug
I have a normal form as follows:

  form multipart: true, direct_upload: true do |f|
    f.input :regions, as: :tags, collection: Investor.regions.keys
  end

My model enum looks like this for the enum: enum regions: [:berlin, :dusseldorf, :hamburg, :hannover]

And finally I get no options being listed in my dropdown and a web error that there are no matching ids for my laber for (check screenshot bellow)

To Reproduce
You can create any model with my enum definition, then create a form for that model with the input as I started describing and that should be enough to test.

Expected behavior
Select dropdown showing collection options and enabling to select multiple ones

Screenshots
Screenshot 2023-08-25 at 16 22 18

@fedeagripa fedeagripa added the bug label Aug 25, 2023
@fedeagripa fedeagripa changed the title [BUG] [BUG] Tags not working for input with enum collection Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant