0

Related Github issue https://github.com/konvajs/react-konva/issues/555

There you can see, shape.preventDefault(true);, but I didn't found any way to call this method using React.

The components I am using

<Stage>
  <Layer>
   <Text {...textProps}/>
  </Layer>
</Stage>

Related docs https://konvajs.org/api/Konva.Node.html#preventDefault

See

// get preventDefault
var shouldPrevent = shape.preventDefault();

// set preventDefault
shape.preventDefault(false);

Where can I get shape??

Rahul
  • 1,858
  • 1
  • 12
  • 33

1 Answers1

0
<Stage>
  <Layer>
   <Text {...textProps} preventDefault={false} />
  </Layer>
</Stage>
lavrton
  • 18,973
  • 4
  • 30
  • 63