Hello, Why when I do replace element through context pad, it works for me eventBus actions: shape.added, commandStack.shape.replace
how can I disable the listener to create an element on replacement?
Thx
What do you want to achieve? Do you wish to override the “replace” action?
I want that when I replace an element, only the listener works for me commandStack.shape.replace.postExecuted
I’m not sure I understand what you want to achieve.
You can hook into that event with eventbus.on('commandStack.shape.replace.postExecute', (event)=>{//do smth})
. This is fired after the replacing happens.
If you want to override the action that happens after clicking an entry, you can do so using a custom popup menu provider.
In order to further help you, please make your use case clear and provide the needed context.