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

Split bodyClass string to allow multiple body classes #296

Merged
merged 1 commit into from
Oct 15, 2020

Conversation

seanblonien
Copy link

From issue #295, simply allow for a bodyClass string with multiple class names and spread them as arguments for classList.add method.

Passing this prop would throw an error and the print would never render.

bodyClass="firstClass secondClass"

With this fix, you are allowed to pass more than 1 class names without error.

@MatthewHerbst
Copy link
Owner

Awesome, thank you!

@MatthewHerbst MatthewHerbst merged commit 83f352a into MatthewHerbst:master Oct 15, 2020
@MatthewHerbst
Copy link
Owner

MatthewHerbst commented Oct 15, 2020

Published as v2.10.1, thanks again!

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

Successfully merging this pull request may close these issues.

2 participants