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
+1 -1
View File
@@ -32910,7 +32910,7 @@
target = _ref.target, target = _ref.target,
rest = _objectWithoutProperties(_ref, ["source", "target"]); rest = _objectWithoutProperties(_ref, ["source", "target"]);
var handleClasses = classnames('react-graph__handle', { var handleClasses = classnames('react-graph__handle', rest.className, {
source: source, source: source,
target: target target: target
}); });
@@ -10,6 +10,7 @@ function onDragStart(evt, nodeId) {
export default memo(({ source, target, ...rest }) => { export default memo(({ source, target, ...rest }) => {
const handleClasses = cx( const handleClasses = cx(
'react-graph__handle', 'react-graph__handle',
rest.className,
{ source, target } { source, target }
); );