Skip to content

fix(autocomplete): return consistent output from panelClosingActions #8533

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

Conversation

crisbeto
Copy link
Member

Currently the panelClosingActions stream is typed to return a MatOptionSelectionChange event, however the real return data is MatOptionSelectionChange|void|MouseEvent, which makes it hard to use. These changes switch to emitting a null if nothing was selected or MatOptionSelectionChange if the user selected something.

Fixes #7553.

@crisbeto crisbeto requested a review from kara as a code owner November 18, 2017 13:59
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 18, 2017
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 and removed pr: needs review labels Nov 28, 2017
@crisbeto crisbeto added target: minor This PR is targeted for the next minor release target: patch This PR is targeted for the next patch release and removed target: minor This PR is targeted for the next minor release labels Dec 6, 2017
@crisbeto crisbeto force-pushed the 7553/autocomplete-consistent-return branch from 063c12c to 6e63246 Compare December 10, 2017 18:11
@andrewseguin andrewseguin added the presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged label Dec 13, 2017
@crisbeto crisbeto force-pushed the 7553/autocomplete-consistent-return branch from 6e63246 to bffa4b3 Compare December 22, 2017 20:47
Currently the `panelClosingActions` stream is typed to return a `MatOptionSelectionChange` event, however the real return data is `MatOptionSelectionChange|void|MouseEvent`, which makes it hard to use. These changes switch to emitting a `null` if nothing was selected or `MatOptionSelectionChange` if the user selected something.

Fixes angular#7553.
@crisbeto crisbeto force-pushed the 7553/autocomplete-consistent-return branch from bffa4b3 to 7d8bd7e Compare March 30, 2018 14:47
@tinayuangao tinayuangao merged commit 2815607 into angular:master May 16, 2018
@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 8, 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 presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MatAutocompleteTrigger panelClosingActions have inconsistent types.
5 participants