Skip to content

Commit

Permalink
correctly implement alert component ref
Browse files Browse the repository at this point in the history
  • Loading branch information
LJKaski committed Oct 24, 2023
1 parent bd2d613 commit ba0e6bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class BaseAlert extends Component<AlertProps> {
onCloseButtonClick,
smallScreen,
closeButtonProps = {},
forwardedRef,
...passProps
} = this.props;

Expand All @@ -73,6 +74,7 @@ class BaseAlert extends Component<AlertProps> {
[`${baseClassName}--${status}`]: !!status,
[alertClassNames.smallScreen]: !!smallScreen,
})}
ref={forwardedRef}
>
<HtmlDiv className={alertClassNames.styleWrapper}>
{status === 'warning' && (
Expand Down

0 comments on commit ba0e6bd

Please sign in to comment.