fix(handle): pass className
This commit is contained in:
Vendored
+1
-1
@@ -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 }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user