I was following the context menu example and deleting a Shape, and that works as expected. I can create a circle or rectangle and everything works as expected. Where I’m running into trouble is when I try to do the same thing with a Konva Path. Path extends Shape so I’m not sure why a Path wouldn’t behave like a Shape. However, when I go to delete it
document.getElementById('delete-button').addEventListener('click', (event) => { if(currentShape.name() == 'poa'){ currentShape.destroy();
currentShape is stage and not a Shape/Path.
I tried increasing the hitStrokeWidth with no effect. The Path is draggable and functions like a Shape in every way expect for this.
death_spice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.