File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const CAlert = props => {
1111 let {
1212 children,
1313 className,
14+ innerRef,
1415 //
1516 onShowChange,
1617 closeButton,
@@ -64,6 +65,7 @@ const CAlert = props => {
6465 in = { Boolean ( isOpen ) }
6566 role = "alert"
6667 { ...attrs }
68+ innerRef = { innerRef }
6769 >
6870 { children }
6971 { closeButton && < CButtonClose onClick = { ( ) => setIsOpen ( false ) } /> }
@@ -74,18 +76,17 @@ const CAlert = props => {
7476CAlert . propTypes = {
7577 children : PropTypes . node ,
7678 className : PropTypes . string ,
77- //
7879 innerRef : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . func , PropTypes . string ] ) ,
7980 onShowChange : PropTypes . func ,
8081 closeButton : PropTypes . bool ,
8182 color : PropTypes . string ,
8283 fade : PropTypes . bool ,
8384 show : PropTypes . oneOfType ( [ PropTypes . bool , PropTypes . number ] ) ,
84- } ;
85+ }
8586
8687CAlert . defaultProps = {
8788 show : true ,
8889 fade : true
89- } ;
90+ }
9091
9192export default CAlert
You can’t perform that action at this time.
0 commit comments