Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

fix(autocomplete): remove autofocus ambiguity. #9438

Merged
merged 1 commit into from
Aug 31, 2016

Conversation

devversion
Copy link
Member

  • The autocomplete opens the dropdown when the md-autofocus attribute is specified.
  • The documentation is not mentioning anything about it (it probably was), but anyways this is interfering with the normal functionality of the md-autofocus attribute, because it is used, to mark an element to be focused upon opening. (e.g $mdSidenav, $mdBottomSheet, $mdDialog)
  • This also fixes an issue where the autocomplete dropdown shows up twice, when having the
    autocomplete inside of a dialog.

This change now provides consistency for the md-autofocus attribute on the autocomplete as well.

@ThomasBurleson This can be marked as a breaking change, but the functionality was not documented for long time.. so not sure.

* The autocomplete opens the dropdown when the `md-autofocus` attribute is specified.
* This wasn't docmented for a long time, since the global `md-autofocus`
  is a key attribute, to mark an element to be focused upon opening. (e.g
  `md-sidenav`, `md-bottom-sheet`, `md-dialog`.

* This also fixes an issue where the autocomplete dropdown shows up twice, when having the autocomplete inside of a dialog.
@devversion devversion added the needs: review This PR is waiting on review from the team label Aug 28, 2016
@ThomasBurleson ThomasBurleson removed the needs: review This PR is waiting on review from the team label Aug 29, 2016
@ThomasBurleson
Copy link
Contributor

@devversion - lgtm

@ThomasBurleson ThomasBurleson added the pr: merge ready This PR is ready for a caretaker to review label Aug 29, 2016
@ThomasBurleson ThomasBurleson modified the milestone: 1.1.1 Aug 29, 2016
@hansl hansl merged commit 00a4c05 into angular:master Aug 31, 2016
@devversion devversion deleted the fix/autocomplete-autofocus branch August 31, 2016 17:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants