Skip to content

Commit

Permalink
fix(tooltip): correct tooltipId prop name (#6744)
Browse files Browse the repository at this point in the history
* fix(tooltip): correct tooltipId prop name

* chore(ci): run yarn format

Co-authored-by: TJ Egan <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 31, 2020
1 parent be373d6 commit bbbb150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/components/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ class Tooltip extends Component {
* @private
*/
_tooltipId =
this.props.id || `__carbon-tooltip_${Math.random().toString(36).substr(2)}`;
this.props.tooltipId ||
`__carbon-tooltip_${Math.random().toString(36).substr(2)}`;

/**
* Internal flag for tracking whether or not focusing on the tooltip trigger
Expand Down

0 comments on commit bbbb150

Please sign in to comment.