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

radio within action fields gets wrong labels #3539

Open
3 of 8 tasks
pjmuller opened this issue Dec 17, 2024 · 1 comment
Open
3 of 8 tasks

radio within action fields gets wrong labels #3539

pjmuller opened this issue Dec 17, 2024 · 1 comment

Comments

@pjmuller
Copy link

Describe the bug

If I use this code

          field :subscription_state,
                as: :radio,
                name: 'Status',
                options: {
                  proposal: 'Uitnodigen',
                  confirmed: 'Bevestigen',
                  reserve: 'Reserve'
                }

within a resource it works fine
Image

but within an action it doesn't display the labels
Image

(it does have the right keys, so the form sets the right value)

Reproduction repository for the bug

System configuration

Avo version: 3.15.3

Rails version: 7.2

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.)
@pjmuller
Copy link
Author

pjmuller commented Dec 17, 2024

Sidenote: BOTH in resource as action -> clicking the label doesn't select the radio (which feels like standard usability best practices)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants