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

Honor include_hidden on inline boolean inputs #1772

Merged
merged 1 commit into from
Jul 13, 2022
Merged

Conversation

yboulkaid
Copy link
Contributor

On nested-style boolean inputs, it's possible to opt-out of the hidden input
generation by passing the include_hidden: false option.

However, for inline inputs, this still generates the hidden field, causing
an inconsistency between the two boolean styles, and a whole lot of late night confusion.

A workaround has been proposed in a comment from 2016,
which consists in passing include_hidden in the input_html. I think this is
not ideal, as it causes inconsitencies between the APIs of the boolean styles.

This PR makes the inline checkboxes honor the include_hidden styles, making their API consistent.

@nashby nashby merged commit 486ff13 into heartcombo:main Jul 13, 2022
@nashby
Copy link
Collaborator

nashby commented Jul 13, 2022

@yboulkaid totally makes sense, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants