From 6a7beb3a89dec3fc54fdc568c50299103fa16e00 Mon Sep 17 00:00:00 2001 From: Lucas C Date: Thu, 8 Feb 2024 13:41:58 +0100 Subject: [PATCH] XWIKI-21851: Found page in the Page Tree macro with a Solr field cannot be opened by left-clicking * Updated the default option to allow reactivation of a link that's already selected. --- .../xwiki-platform-tree-webjar/src/main/webjar/finder.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xwiki-platform-core/xwiki-platform-tree/xwiki-platform-tree-webjar/src/main/webjar/finder.js b/xwiki-platform-core/xwiki-platform-tree/xwiki-platform-tree-webjar/src/main/webjar/finder.js index 8b2f7ba1a26e..70699b33bbd2 100644 --- a/xwiki-platform-core/xwiki-platform-tree/xwiki-platform-tree-webjar/src/main/webjar/finder.js +++ b/xwiki-platform-core/xwiki-platform-tree/xwiki-platform-tree-webjar/src/main/webjar/finder.js @@ -34,6 +34,9 @@ define(['jquery', 'jsTree', 'xwiki-events-bridge'], function($) { } }; + // We want to still activate the links with a click even after they are selected from the finder. + $.jstree.defaults.core.allow_reselect = true; + var createSuggestInput = function(options) { var input = document.createElement('input'); input.type = 'text';