We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fee67a commit 8a27cebCopy full SHA for 8a27ceb
app/views/searches/combobox.rb
@@ -41,6 +41,7 @@ def view_template
41
autofocus: true,
42
role: "combobox",
43
aria: input_aria,
44
+ id: combobox_id,
45
data: {
46
action: "
47
focus->combobox#tryOpen
@@ -62,13 +63,17 @@ def input_aria
62
63
{
64
expanded: false,
65
autocomplete: "none",
- controls: "search-listbox",
66
- owns: "search-listbox",
+ controls: listbox_id,
67
+ owns: listbox_id,
68
haspopup: "listbox",
69
activedescendant: ""
70
}
71
end
72
73
+ def combobox_id
74
+ "search-combobox"
75
+ end
76
+
77
def listbox_id
78
"search-listbox"
79
0 commit comments