Skip to content

Commit c1022a8

Browse files
committed
fix: CAlert: add innerRef prop
1 parent ad88025 commit c1022a8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/alert/CAlert.js

+4-3
Original file line numberDiff line numberDiff 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 => {
7476
CAlert.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

8687
CAlert.defaultProps = {
8788
show: true,
8889
fade: true
89-
};
90+
}
9091

9192
export default CAlert

0 commit comments

Comments
 (0)