Drawflow icon indicating copy to clipboard operation
Drawflow copied to clipboard

Issue on the first enter

Open lucand opened this issue 2 years ago • 2 comments

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).

lucand avatar Jun 01 '22 14:06 lucand

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();
      }
    })

jerosoler avatar Jun 01 '22 14:06 jerosoler

Fix works fine, thanks for help.

lucand avatar Jun 02 '22 08:06 lucand