Skip to content

Commit 741e1bd

Browse files
author
Dominik Sumer
committed
improved code readability
1 parent a3a6a0f commit 741e1bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tooltip.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ class Tooltip extends Component {
4242
};
4343

4444
getPopupElement = () => {
45-
const { arrowContent, overlay, prefixCls } = this.props;
45+
const { arrowContent, overlay, prefixCls, ariaId } = this.props;
4646
return ([
4747
<div className={`${prefixCls}-arrow`} key="arrow">
4848
{arrowContent}
4949
</div>,
50-
<div className={`${prefixCls}-inner`} key="content" id={this.props.ariaId}>
50+
<div className={`${prefixCls}-inner`} key="content" id={ariaId}>
5151
{typeof overlay === 'function' ? overlay() : overlay}
5252
</div>,
5353
]);

0 commit comments

Comments
 (0)