Skip to content

Commit dd35c40

Browse files
Sereza7github-actions[bot]
authored andcommitted
XWIKI-22492: Livedata filter options are misread (#3808)
* Removed the problematic semantics from the selectize options. (cherry picked from commit 845db18)
1 parent 592d2c3 commit dd35c40

File tree

1 file changed

+1
-5
lines changed
  • xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest

1 file changed

+1
-5
lines changed

xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest/xwiki.selectize.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ define('xwiki-selectize', [
3131
'xwiki-events-bridge'
3232
], function($, Selectize, l10n) {
3333
var optionTemplate = [
34-
'<div class="xwiki-selectize-option" role="option" aria-selected="false" data-value="">',
34+
'<div class="xwiki-selectize-option" data-value="">',
3535
'<span class="xwiki-selectize-option-icon"></span>',
3636
'<span class="xwiki-selectize-option-label"></span>',
3737
'</div>'
@@ -206,10 +206,6 @@ define('xwiki-selectize', [
206206
let oldOnOptionSelect = this.selectize.onOptionSelect;
207207
this.selectize.onOptionSelect = function(...args) {
208208
const result = oldOnOptionSelect.apply(this, args);
209-
// clear aria-selected state on all previously selected elements first
210-
this.get$('dropdown').find('.option').attr('aria-selected','false');
211-
// then set the aria-selected state of the newly selected element.
212-
this.get$('dropdown').find('.selected').attr('aria-selected','true');
213209
return result;
214210
}
215211
let oldSetActiveOption = this.selectize.setActiveOption;

0 commit comments

Comments
 (0)