Skip to content

Make toggle prop optional on Modal#325

Merged
eddywashere merged 2 commits intoreactstrap:masterfrom
bherila:toggle-prop-optional
Feb 14, 2017
Merged

Make toggle prop optional on Modal#325
eddywashere merged 2 commits intoreactstrap:masterfrom
bherila:toggle-prop-optional

Conversation

@bherila
Copy link
Copy Markdown
Contributor

@bherila bherila commented Feb 8, 2017

re #323

@bherila
Copy link
Copy Markdown
Contributor Author

bherila commented Feb 8, 2017

@eddywashere what do you think?

@eddywashere
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants