Skip to content

fix(autocomplete): not emitting opened event if options come in after open #15582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2019

Conversation

crisbeto
Copy link
Member

Fixes mat-autocomplete not emitting its opened event if it is opened without any options and then the options come in at a later point.

Fixes #15573.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Mar 22, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Mar 22, 2019
if (this.panelOpen) {
this._overlayRef!.updatePosition();

if (wasOpen !== this.panelOpen) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment here that captures the context for this PR?

@crisbeto crisbeto force-pushed the 15573/autocomplete-open-event branch from 1f4a42c to e5f62b7 Compare March 31, 2019 15:10
@crisbeto
Copy link
Member Author

Addressed the feedback @jelbourn.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Apr 1, 2019
@mmalerba mmalerba added aaa and removed aaa labels Apr 25, 2019
@jelbourn
Copy link
Member

@crisbeto this passes presubmit, just needs a rebase

… open

Fixes `mat-autocomplete` not emitting its `opened` event if it is opened without any options and then the options come in at a later point.

Fixes angular#15573.
@crisbeto
Copy link
Member Author

Rebased.

@crisbeto crisbeto force-pushed the 15573/autocomplete-open-event branch from e5f62b7 to face478 Compare May 13, 2019 16:16
@jelbourn jelbourn merged commit 1218592 into angular:master May 13, 2019
RudolfFrederiksen pushed a commit to RudolfFrederiksen/material2 that referenced this pull request Jun 21, 2019
… open (angular#15582)

Fixes `mat-autocomplete` not emitting its `opened` event if it is opened without any options and then the options come in at a later point.

Fixes angular#15573.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete doesn't emit opened first time when options are generated asynchronous
4 participants