Commit 6811750c authored by Michael Vrána's avatar Michael Vrána

NodeContainer click causes loss of focus fix

parent 981a891d
Pipeline #81041 passed with stages
in 9 minutes and 57 seconds
......@@ -120,14 +120,6 @@ const NodeContainer = (props: Props) => {
// Ref to state name
const textRef = useTextSize(data?.name ?? '', handleUpdate, false)
// Disallow click on elements behind
const handleClick = React.useCallback(
(e: React.MouseEvent<SVGRectElement>) => {
e.nativeEvent.stopImmediatePropagation()
},
[]
)
// Dragging state
const handleMouseMove = React.useCallback(
(e: React.MouseEvent<SVGRectElement>) => {
......@@ -294,7 +286,6 @@ const NodeContainer = (props: Props) => {
onMouseDown={handleMouseDown}
onMouseUp={handleMouseUp}
onMouseMove={handleMouseMove}
onClick={handleClick}
onEdit={handleEdit}
onView={handleView}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment