Skip to content

Commit

Permalink
XWIKI-22492: Livedata filter options are misread
Browse files Browse the repository at this point in the history
* Improved stability of the function overriding implementation

Co-authored-by: Marius Dumitru Florea <[email protected]>
  • Loading branch information
Sereza7 and mflorea authored Jan 13, 2025
1 parent 017fe21 commit 48f43d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = $('<span>');
Expand Down

0 comments on commit 48f43d7

Please sign in to comment.