Commit 42fd9ed
committed
fix(ComboBox): fix highlight lingering after mouse leaves
- Track the popup's hover state by adding a isInteractingWithContent property
to ComboBox, and modify the highlighted property in the delegate.
- The logic of the highlighted property now depends on
isInteractingWithContent, automatically clearing the highlight when the
mouse leaves.
修复鼠标移出后高亮项仍然残留的问题
- 在ComboBox上添加isInteractingWithContent属性跟踪popup悬停状态,修改delegate的highlighted属性
- highlighted属性逻辑依赖isInteractingWithContent,鼠标离开时自动清除高亮
Log: 修复ComboBox的菜单项鼠标离开后高亮残留问题
Influence: ComboBox菜单项
PMS: BUG-3049911 parent 1998e42 commit 42fd9ed
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
172 | 184 | | |
173 | 185 | | |
174 | 186 | | |
| |||
0 commit comments