Skip to content

ConnectedOverlayDirective relies on binding order #3225

Closed

Description

@tbosch

Bug, feature request, or proposal:

Bug

What is the expected behavior?

The directive should work independent of the order in which the bindings are set.

What is the current behavior?

The directive relies on the fact that the origin input is set before the open property, as the open property has a setter that relies on origin to be filled.

What are the steps to reproduce?

Users won't, I hit this while creating the new view engine for Angular 2.

What is the use-case or motivation for changing an existing behavior?

Changing Angular without breaking material.

Which versions of Angular, Material, OS, browsers are affected?

At least current master.

Is there anything else we should know?

A solution might be to use ngOnChanges instead of a setter for open in ConnectedOverlayDirective.

Activity

  1. tbosch commented on Feb 21, 2017

    @tbosch
    Author

    I have a workaround, but it would be nice to fix this for the future.

  2. added a commit that references this issue on Feb 21, 2017
    68e6b5d
  3. added
    P3
    on Feb 21, 2017
  4. added a commit that references this issue on Mar 4, 2017
    84da1c9
  5. added a commit that references this issue on May 9, 2017
    5d0e3d7
  6. added a commit that references this issue on May 11, 2017
    2c0506c
  7. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions