Drawflow
Drawflow copied to clipboard
Issue on the first enter
When you enter the editor for the first time, and click on the connection between nodes, pressing delete key doesn't fire delete event, although connection is selected(highlighted).
How strange... a node yes, but a connection no...
You can fix it with this right now:
editor.on("connectionSelected", () => {
if(document.activeElement !== editor.container) {
editor.container.focus();
}
})
Fix works fine, thanks for help.