-
Notifications
You must be signed in to change notification settings - Fork 560
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
prevent adding undefined to className when value do not provided #2551
Conversation
set default value to className in order to prevent adding undefined when value don't provided.
set default value to className in order to prevent adding undefined when value don't provided
Hi @ubaidisaev - thanks for the commit! I wonder if instead of passing an empty string we could avoid adding the class name altogether. If there's not a more elegant way this looks pretty good IMO. How'd you find this? |
@dmsnell we can completely remove |
@ubaidisaev we're already using still curious, and curiosity is all, how you stumbled upon this - it's a good catch but such a mundane detail 😄 |
@dmsnell I know that |
@ubaidisaev I meant that in this specific case we're already using |
@ubaidisaev I don't think I'm coming across clearly. if you look a couple lines under where you made the default value you will see the app is already using |
@dmsnell yeap you're right. I didn't notice it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating with classNames
usage!
@codebykat I'm turning this over to you to merge since I'm somewhat removed from the release process at the moment.
Should get into 2.5.0 just under the wire. Thanks @ubaidisaev! |
Fix
Add default value to className param
Test
no test needed