From b2360a6eb6aaf985e952d0232b266367eeca1bb4 Mon Sep 17 00:00:00 2001 From: LucasC Date: Mon, 9 Dec 2024 10:37:50 +0100 Subject: [PATCH] XWIKI-22579: Livedata filter selectize input for lists does not have a label (#3575) * Added a way to retrieve the aria-label of the input to complete the control-input --- .../webapp/resources/uicomponents/suggest/xwiki.selectize.js | 2 ++ 1 file changed, 2 insertions(+) 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 bc3aa30f81db..2658b9379301 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 @@ -209,6 +209,8 @@ define('xwiki-selectize', [ } // Set the title of the input field. this.selectize.get$('control_input').attr('title', $(this).attr('title')); + // Set the text alternative of the input field. + this.selectize.get$('control_input').attr('aria-label', $(this).attr('aria-label')); }; var setDropDownAlignment = function(selectize) {