From 58db9129b8ee45715d00fa4bba93b6cf3153d0ce Mon Sep 17 00:00:00 2001 From: Mikael Gustafsson Date: Fri, 9 Jun 2023 13:53:32 +0300 Subject: [PATCH] Accessibility fix Add name attribute to checkboxes. sourceItem.title is used as the name. This stops browser's accessibilty checks from complaining about the checkboxes. --- comboTreePlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comboTreePlugin.js b/comboTreePlugin.js index 491b1ac..868328a 100644 --- a/comboTreePlugin.js +++ b/comboTreePlugin.js @@ -148,7 +148,7 @@ itemHtml += '' + (this.options.collapse || collapse ? '' : '') + ''; // itemHtml += '' + (this.options.collapse ? '+' : '−') + ''; if (this.options.isMultiple) - itemHtml += '' + (!selectableLastNode && isSelectable ? '' : '') + sourceItem.title + ''; + itemHtml += '' + (!selectableLastNode && isSelectable ? '' : '') + sourceItem.title + ''; else itemHtml += '' + sourceItem.title + '';