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

Checkbox field with the name of "statuses" does not render correctly #2759

Closed
litzinger opened this issue Jan 16, 2023 · 2 comments · Fixed by #2762 or #2768
Closed

Checkbox field with the name of "statuses" does not render correctly #2759

litzinger opened this issue Jan 16, 2023 · 2 comments · Fixed by #2762 or #2768
Assignees
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.

Comments

@litzinger
Copy link
Contributor

litzinger commented Jan 16, 2023

Description of the problem
I'm trying to add a "Statuses" field to an add-on, and it seems there is some native code styling a <fieldset id="fieldset-statuses"...> element different than a normal checkbox field, which is fine, except it does not render well. If I rename the field it renders the checkboxes as expected, but I would like to actually use the name "statuses" as it's a consistent with the naming scheme of other settings on this page (e.g. "tags", "items") .

How To Reproduce
In an add-on I'm creating a checkbox field with the name of "statuses" with this configuration

[
                    'title'  => 'speedy_clearing_statuses',
                    'desc'   => 'speedy_clearing_statuses_desc',
                    'fields' => [
                        'statuses' => [
                            'type'     => 'checkbox',
                            'choices'  => $statuses,
                            'value'    => $settings->statuses,
                        ],
                    ],
                ]

Screenshots

Screenshot 2023-01-16 at 1 48 26 PM

Environment Details:

  • Version: EE 7.2.6
  • Browser: Safari

There is a whole set of styles for this since it's named "statuses" - I'm not sure where else in EE this is used. I'm fine if it renders different... but it should render well.

Screenshot 2023-01-16 at 1 56 03 PM

Screenshot 2023-01-16 at 1 55 57 PM

Screenshot 2023-01-16 at 1 55 40 PM

@litzinger
Copy link
Contributor Author

FWIW it renders fine in EE 6

Screenshot 2023-01-17 at 8 56 39 AM

matthewjohns0n added a commit that referenced this issue Jan 17, 2023
…ox-for-statuses

Resolved #2759 where checkbox field with the name of "statuses" does not render correctly
@litzinger
Copy link
Contributor Author

I'm not sure this is fixed :( If there are just 2 statuses it's fine, but as soon as there are 4 or more options, it turns into a React field and renders oddly.

Screenshot 2023-01-18 at 4 35 56 AM

@Yulyaswan Yulyaswan reopened this Jan 18, 2023
intoeetive added a commit that referenced this issue Jan 27, 2023
…box-rendering

Resolved #2759 where checkbox field with the name of "statuses" did not always render correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on.
Projects
None yet
2 participants