Skip to content

bug(mat-option in mat-autocomplete): After deleting chips, mat-autocomplete does not change position. #26097

Closed
@Satlykov

Description

@Satlykov

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When remove chips, we don't have trigger for change position mat-autocomplete.

Reproduction

Steps to reproduce:

  1. Visit https://material.angular.io/components/chips/examples
  2. Look first example "Chips Autocomplete"
  3. Select chips like on example (to have two rows).
  4. When is open mat-autocomplete, delete all chips on second row for change size area of chips.

Screen Recording (11-27-2022 7-20-19 PM)
Screen Recording (11-27-2022 7-22-06 PM)

Expected Behavior

Update the position mat-autocomplete when resizing the area of chips.

Actual Behavior

After deleting chips, mat-autocomplete does not change position.

Environment

  • Angular: 13
  • CDK/Material: 13.2.2
  • Browser(s): Google Chrome Version 107.0.5304.107 (Official Build) (64-bit)
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10 Pro 19044.2251

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions