From 48f43d78cdf12abad93301b81561ec49538932e2 Mon Sep 17 00:00:00 2001 From: LucasC Date: Mon, 13 Jan 2025 17:44:06 +0100 Subject: [PATCH] XWIKI-22492: Livedata filter options are misread * Improved stability of the function overriding implementation Co-authored-by: Marius Dumitru Florea --- .../webapp/resources/uicomponents/suggest/xwiki.selectize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest/xwiki.selectize.js b/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest/xwiki.selectize.js index a19dbcd4ad8..ab7090f265f 100644 --- a/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest/xwiki.selectize.js +++ b/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest/xwiki.selectize.js @@ -215,7 +215,7 @@ define('xwiki-selectize', [ let oldSetActiveOption = this.selectize.setActiveOption; this.selectize.setActiveOption = function(option, ...args) { this.liveRegion?.text($(option).text()); - oldSetActiveOption.call(this, option, ...args); + return oldSetActiveOption.call(this, option, ...args); } // Create a live region to store the value of the currently active option. this.selectize.liveRegion = $('');