This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
md-autocomplete autofocus #1764
Closed
Description
Hi,
I am using md-autocomplete in a md-dialog, to show only a button to launch a search.
BTW, I'd like to set focus on autocomplete > input right when it is available.
Is it possible to pass a param into autocompleteDirective ?
Then set it to true when building the input ?
scope: {
searchText: '=mdSearchText',
autofocus: '=mdAutofocus',function MdAutocomplete () {
return {
template: '
<input type="text"
ng-disabled="isDisabled"
~~autofocus="autofocus"~~
Do you want me to make a plunkr to explain ?
Metadata
Metadata
Assignees
Labels
No labels