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

Fixes Material-UI inline checkboxes #2038

Merged
merged 1 commit into from
Sep 22, 2020
Merged

Conversation

adam-beck
Copy link
Contributor

@adam-beck adam-beck commented Sep 8, 2020

Reasons for making this change

Fixes an issue when setting the UI to display checkboxes inline does not honor the configuration. This fix only applies to the material-ui package.

Selection_001

Fixes #2021

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests
    • I've updated docs if needed
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

@@ -76,13 +76,7 @@ const CheckboxesWidget = ({
onFocus={_onFocus}
/>
);
return inline ? (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I try not to refactor within unrelated commits but this seemed relevant since the code block removed used the inline property. I'm not sure why this was done but this is redundant regardless because both sides of the ternary return the same thing.

@NiteshOswal
Copy link

Ran into this issue earlier today. Glad there's a fix for it @agustin107 @epicfaace Any ideas when can this be merged?

@epicfaace epicfaace merged commit aae38dc into rjsf-team:master Sep 22, 2020
@adam-beck adam-beck deleted the fix-2021 branch September 26, 2020 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inline Checkboxes are not appearing inline in material theme
3 participants