Commit dd67e9e
committed
fix(ComboBox): fix highlight lingering after mouse leaves
- Track the popup's hover state by adding a isInteractingWithContent property,
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.
修复鼠标移出后高亮项仍然残留的问题
- 通过添加isInteractingWithContent属性跟踪popup悬停状态,修改delegate的highlighted
- highlighted 属性逻辑依赖isInteractingWithContent,鼠标离开时自动清除高亮
Log: 修复ComboBox的菜单项鼠标离开后高亮残留问题
Influence: ComboBox菜单项
PMS: BUG-3049911 parent 1998e42 commit dd67e9e
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
169 | 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