selecto
selecto copied to clipboard
Issue with destroy - Cannot read properties of null (reading 'unset')
Environments
- Framework name: React
- Framework version: 17.0.2
- Component name: Selecto (+Moveable)
- Component version: 1.19.1
Description
Hi! I'm having an issue when trying to destroy Selecto - as part of allowing/not allowing interactions.
This is how I'm using it - Selecto is defined in all cases, so not sure about gesto.
if (inlineEditingSwitched && this.props.options.inlineEditing) {
this.scene.selecto?.destroy();
}


I'm still investigating on our end, but was wondering if you might have any ideas.
@adela-almasan
I think destroy is called destroy 2 times.
after calling destroy
try setting this.scene.selecto = null;