From 9c23ca9791924b57e892bc850e28888caaeb03f6 Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 17 Oct 2018 15:31:42 +0200 Subject: [PATCH] Fixed not preventing default selection of text when selecting nodes --- HISTORY.md | 1 + src/js/treemode.js | 1 + 2 files changed, 2 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index 5b723a1..513d257 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -11,6 +11,7 @@ https://github.com/josdejong/jsoneditor when deleting a node. - Fixed duplicate and remove of the action menu of multiple selected nodes not working. +- Fixed not preventing default selection of text when selecting nodes. ## 2018-10-08, version 5.24.7 diff --git a/src/js/treemode.js b/src/js/treemode.js index cc3a996..7f5ff51 100644 --- a/src/js/treemode.js +++ b/src/js/treemode.js @@ -1316,6 +1316,7 @@ treemode._onMultiSelectStart = function (event) { }); } + event.preventDefault(); }; /**