From ebb7c3f5c23693cd00dbe24b2c3a2534f890a01b Mon Sep 17 00:00:00 2001 From: TimStallard Date: Thu, 17 Aug 2017 10:53:47 +0100 Subject: [PATCH] Fixed bug caused by disabling text selection (test your code first!) --- src/pageInteraction/dragDrop.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pageInteraction/dragDrop.js b/src/pageInteraction/dragDrop.js index 2608b54..0782316 100644 --- a/src/pageInteraction/dragDrop.js +++ b/src/pageInteraction/dragDrop.js @@ -71,6 +71,10 @@ $("#workspace").on("mousedown", ".block>.main,.block>.inputs", function(event){ } }); +$("#workspace").on("mousedown", ".block>.main input,.block>.main textarea", function(event){ //allow for clicking a textbox + event.stopPropagation(); +}); + $("#workspace").on("mouseup", ".block>.main,.block>.inputs", function(event){ diagram.state.filter((block)=>(block.id == $(this).parent().attr("id")))[0].dragging = false; offX = false;