Skip to content

Commit

Permalink
BUGFIX: Make multiple move work again
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther committed Apr 12, 2023
1 parent 719933f commit 6a1d841
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/react-ui-components/src/Tree/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,15 @@ export class Header extends PureComponent {
[theme['header__data--deniesDrop']]: isOver && !canDrop
});

const linkHandlingProps = directLink ? {href: directLink, onClick: (e) => e.preventDefault()} : {onClick: onLabelClick};
let linkHandlingProps = {onClick: onLabelClick};
if (directLink) {
linkHandlingProps = {
href: directLink,
target: '_blank',
rel: 'noopener noreferrer',
onClick: (event) => event.preventDefault()
};
}

return (
<div>
Expand Down

0 comments on commit 6a1d841

Please sign in to comment.