Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
fix: no hand when in edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
niekvanstaveren committed Feb 18, 2020
1 parent 8ef5264 commit c435e02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/styles/nodes.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
border: 1px solid #8c8c8c;
text-align: center;
line-height: 24px;
&:hover {
cursor: pointer;
}
}

.sn-org-root {
Expand Down
3 changes: 3 additions & 0 deletions src/tree/box.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export default function box(
(cardWidth - buttonWidth) / 2}px;`
)
.attr('id', d => `${d.data.id}-expand`)
.on('mouseenter', () => {
if (!selectionsAndTransform.constraints.active) event.target.style.cursor = 'pointer';
})
.on('click', d => {
if (!selectionsAndTransform.constraints.active) {
setStateCallback(getNewState(d, expandedState, ancestorIds));
Expand Down

0 comments on commit c435e02

Please sign in to comment.