-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
#824 Add ability to disable fade on <Alert /> #1078
#824 Add ability to disable fade on <Alert /> #1078
Conversation
src/UncontrolledAlert.js
Outdated
constructor(props) { | ||
super(props); | ||
|
||
this.state = { isOpen: true }; | ||
this.toggle = this.toggle.bind(this); | ||
this.fade = this.props.fade; |
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.
I don't think any changes are needed to this file, but at the very least, this change does nothing.
@TheSharpieOne done |
@TheSharpieOne in a84e148 inheriting default props from Alert will override |
Yeah, we usually just don't define the props for the uncontrolled components but when I was cleaning it up I thought it would be interesting if we exposed the original props through. I probably should have only done it for prop types and not default props but I didn't give it much thought. |
I can add back |
…p-innerRef * 'master' of github.com:reactstrap/reactstrap: feat(Modal): add ref to Modal (reactstrap#1087) feat(alert): add ability to disable fade (reactstrap#1078)
No description provided.