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

fix: 'undefined' being added as classNames #24

Merged
merged 3 commits into from
Jul 15, 2022
Merged

fix: 'undefined' being added as classNames #24

merged 3 commits into from
Jul 15, 2022

Conversation

dylandbl
Copy link
Owner

@dylandbl dylandbl commented Jul 15, 2022

Summary

"undefined" was being added to elements as a class name. If the user adds no custom class name, then the className value should just be the default value, not "defaultValue undefined".

Why this change is needed

Prevents the class name "undefined" being added to all customizable internal elements.

What was done

Added conditional statements to ensure the custom classNames are not nullish before being added.

@dylandbl dylandbl merged commit c2e733a into main Jul 15, 2022
@dylandbl dylandbl deleted the fix/classNames branch July 15, 2022 07:04
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.

1 participant