angular / angular/components

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

未关闭
#26,440 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area: cdk/drag-drop P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
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 示例。比较 mouseenter 是否会在 cdkDragStarted 之后触发;完成标准是两个浏览器中观察到相同的事件行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。