Skip to content

Commit

Permalink
fix(standalone): use aria label from input (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
kontrollanten authored and Haroenv committed Jan 16, 2019
1 parent 84b1714 commit 4b94466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/standalone/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ function autocomplete(selector, options, datasets, typeaheadObject) {
datasets: datasets,
keyboardShortcuts: options.keyboardShortcuts,
appendTo: options.appendTo,
autoWidth: options.autoWidth
autoWidth: options.autoWidth,
ariaLabel: options.ariaLabel || input.getAttribute('aria-label')
});
$input.data(typeaheadKey, typeahead);
});
Expand Down

0 comments on commit 4b94466

Please sign in to comment.