@springernature/global-autocomplete
Advanced tools
Comparing version 5.1.3 to 5.1.4
@@ -11,2 +11,3 @@ /* eslint-disable unicorn/no-abusive-eslint-disable */ | ||
resultsContainer.className = 'c-results-container'; | ||
resultsContainer.setAttribute('role', 'listbox'); | ||
@@ -20,4 +21,5 @@ // Assuming results is an array | ||
result.textContent = datum; | ||
result.tabIndex = '0'; // So you can focus/tab through the results | ||
result.tabIndex = 0; // So you can focus/tab through the results | ||
result.className = 'c-results-container__result'; | ||
result.setAttribute('role', 'option'); | ||
resultsContainer.appendChild(result); | ||
@@ -24,0 +26,0 @@ }); |
# History | ||
## 5.1.4 (2022-02-25) | ||
* BUG: unable to move focus to select autocomplete items when using NVDA with Firefox (Windows) | ||
* add role="listbox" to parent container of autocomplete items | ||
* add role="option" to each autocomplete item | ||
* Change tabIndex value from string to integer | ||
## 5.1.3 (2022-02-18) | ||
@@ -4,0 +10,0 @@ * Remove post install step that was causing issues with CI |
{ | ||
"name": "@springernature/global-autocomplete", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Autocomplete/suggest component", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57450
978