fix(handle): pass className

This commit is contained in:
moklick
2019-07-29 18:41:52 +02:00
parent bdcb9b9fc2
commit 06a7bad23a
2 changed files with 2 additions and 1 deletions

2
dist/ReactGraph.js vendored
View File

@@ -32910,7 +32910,7 @@
target = _ref.target,
rest = _objectWithoutProperties(_ref, ["source", "target"]);
var handleClasses = classnames('react-graph__handle', {
var handleClasses = classnames('react-graph__handle', rest.className, {
source: source,
target: target
});

View File

@@ -10,6 +10,7 @@ function onDragStart(evt, nodeId) {
export default memo(({ source, target, ...rest }) => {
const handleClasses = cx(
'react-graph__handle',
rest.className,
{ source, target }
);