Skip to content
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
Closed
@RomainFleury

Description

@RomainFleury

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions