angular / angular/components

bug(cdk-drag-drop, cdk-tree): FireFox (mouseenter) not working with cdkDrag

オープン
#26,440 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る
area: cdk/drag-drop P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### 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

## Different behavior with cdkDrag and (mouseenter) between Chrome and Firefox

```


```

### Chrome: (mouseenter) event is triggered successfully, after (cdkDragStarted)

![Chrome](https://user-images.githubusercontent.com/122812012/212735599-6cd192e4-c6a1-4750-b038-36f1e03524a8.gif)

### Firefox: same logic fails

![FireFox](https://user-images.githubusercontent.com/122812012/212735793-b76e86e6-191f-4727-9394-ab3ac554394e.gif)

### Reproduction

Steps to reproduce:
1. Create `` structure inside Angular app
2. Add `(mouseenter)` to ``
3. Inside `` add `

` with `cdkDrag` directive
4. Compare behavior between Chrome and FireFox

### Expected Behavior

Should be same

### Actual Behavior

Firefox: Failed `(mouseenter)` event execution

Event not triggering after `(cdkDragStarted)`

### Environment

- Angular: 10.2.7
- CDK/Material: 10.2.7
- Browser(s): Chrome 108.0.5359.124, FireFox 108.0.1
- Operating System (e.g. Windows, macOS, Ubuntu): Windows, Fedora

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Firefox と Chrome で、cdk-nested-tree-node、cdkDrag、mouseenter/mouseleave イベントおよび drag のライフサイクルイベントを使用した cdk-tree の例を再現します。cdkDragStarted の後に mouseenter が発火するかを比較します。完了条件は、両方のブラウザーで同じイベント動作が観測されることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。