Browse Source

Add aria-controls to combobox (#5942)

Artur Janicki 4 năm trước cách đây
mục cha
commit
80d4234369
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/js/select2/selection/single.js

+ 1 - 0
src/js/select2/selection/single.js

@@ -37,6 +37,7 @@ define([
       .attr('role', 'textbox')
       .attr('aria-readonly', 'true');
     this.$selection.attr('aria-labelledby', id);
+    this.$selection.attr('aria-controls', id);
 
     this.$selection.on('mousedown', function (evt) {
       // Only respond to left clicks