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

Make toggle prop optional on Modal #325

Merged
merged 2 commits into from
Feb 14, 2017

Conversation

bherila
Copy link
Contributor

@bherila bherila commented Feb 8, 2017

re #323

@bherila
Copy link
Contributor Author

bherila commented Feb 8, 2017

@eddywashere what do you think?

@eddywashere
Copy link
Member

+1 to this specifically. Will hold off on merging until I can ship a release and avoid any confusion with what's in master and what latest on npm

Copy link
Member

@TheSharpieOne TheSharpieOne left a comment

Choose a reason for hiding this comment

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

👍 for making the propType not required, but there is logic that needs to also be updated.
Currently it assumes that this.props.toggle will always be present. With your change, that is not the case. You may want to default it to an noop or check that it is function before calling it (where it is being called)

@bherila
Copy link
Contributor Author

bherila commented Feb 13, 2017

Good call @TheSharpieOne , I fixed that.

@eddywashere eddywashere merged commit 5e98ea3 into reactstrap:master Feb 14, 2017
@bherila bherila deleted the toggle-prop-optional branch February 18, 2017 00:38
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.

None yet

3 participants