Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c1022a8

Browse filesBrowse files
committed
fix: CAlert: add innerRef prop
1 parent ad88025 commit c1022a8
Copy full SHA for c1022a8

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed

‎src/alert/CAlert.js

Copy file name to clipboardExpand all lines: src/alert/CAlert.js
+4-3Lines changed: 4 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.