Skip to content

Commit

Permalink
feat(bubble): fix bubble tooltip id value
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte committed Aug 20, 2017
1 parent aba5c98 commit 615b90e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/charts/bubble/Bubble.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,17 @@ const createNodes = ({
const renderedNodes = []

nodes.filter(node => node.style.r > 0).forEach(node => {
const handleTooltip = e =>
const handleTooltip = e => {
showTooltip(
<BasicTooltip
id={node.data.data.name}
id={node.data.id}
value={node.data.value}
enableChip={true}
color={node.style.color}
/>,
e
)
}

renderedNodes.push(
<circle
Expand Down
1 change: 1 addition & 0 deletions src/components/charts/bubble/BubblePlaceholders.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const BubblePlaceholders = ({
}) => {
// assign a unique id depending on node path to each node
root.each(node => {
node.id = getIdentity(node.data)
node.uid = computeNodeUID(node, getIdentity)
})

Expand Down

0 comments on commit 615b90e

Please sign in to comment.