From a86134cc5bc0c3cad7787aaec00e7efac868aabb Mon Sep 17 00:00:00 2001 From: loopback0 Date: Tue, 3 Jan 2017 20:18:35 +0000 Subject: [PATCH] Fix selection Tweak to allow the shift + click behaviour for the checkboxes while still letting the browser behaviour work --- public/src/modules/topicSelect.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/src/modules/topicSelect.js b/public/src/modules/topicSelect.js index 6169b1f891..0380e90333 100644 --- a/public/src/modules/topicSelect.js +++ b/public/src/modules/topicSelect.js @@ -10,9 +10,9 @@ define('topicSelect', ['components'], function (components) { TopicSelect.init = function (onSelect) { topicsContainer = $('[component="category"]'); - topicsContainer.on('selectstart', function () { - return false; - }); + topicsContainer.on('selectstart', '[component="topic/select"]', function (ev) { + ev.preventDefault(); + }); topicsContainer.on('click', '[component="topic/select"]', function (ev) { var select = $(this); @@ -82,4 +82,4 @@ define('topicSelect', ['components'], function (components) { } return TopicSelect; -}); \ No newline at end of file +});