Skip to content

Mat-chip component swallows application events catching by @HostListener. #19759

Closed

Description

@bevas

Overview of the Issue

Mat-chip component swallows click events catching by @HostListener.

Angular and Material Versions

"@angular/animations": "9.1.9",
"@angular/cdk": "9.2.4",
"@angular/common": "^9.1.4",
"@angular/compiler": "9.1.9",
"@angular/core": "^9.1.4",
"@angular/forms": "^9.1.4",
"@angular/material": "9.2.4",
"@angular/platform-browser": "^9.1.4",
"@angular/platform-browser-dynamic": "^9.1.9",
"@angular/router": "^9.1.4"

Motivation for or Use Case

Trying to close mat dialog without backdrop by clicking out side. Followed question on stackoverflow

Browsers and Operating System

Windows 10 Enterprice - Version 1803
Chrome - Version 83.0.4103.116 (Official Build) (64-bit)

Reproduce the Error

Run stackbliz demo
Do some clicks in application and see the console log. Mouse events are not catch-up for mat-chip clicks.

Screenshots
NA
Related Issues
NA
Suggest a Fix
NA

Activity

  1. self-assigned this
    on Jun 25, 2020
  2. added
    P3
    on Jun 25, 2020
  3. added a commit that references this issue on Jun 25, 2020
    462d557
  4. added a commit that references this issue on May 31, 2021
    032af16
  5. added 3 commits that reference this issue on Jan 26, 2022
    64144a0
    3c5a9b7
    337634f
  6. angular-automatic-lock-bot commented on Feb 26, 2022

    @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.

  7. locked and limited conversation to collaborators on Feb 26, 2022
  8. added a commit that references this issue on Apr 3, 2022
    97b9d08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3area: material/chips

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions