Commit eb541d6
Tooltip: ensure tooltip stays if focus moves from anchor into content
The tooltip has behaviour to ensure that when the focus
moves from the anchor to the tooltip that the tooltip does not hide,
however it only worked if the focus was the immediate child of the
tooltip. In our case (see attached bug) the focus was moving into a link
deeply nested within the contents of the tooltip.
This CL updates the code to make use of the blur target & relatedTarget
properties to detect this case and not hide the tooltip.
Fixed: 406543379
Change-Id: I7ad19fbde17e275663465e0bb86f8b2ea8ba768e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6402534
Commit-Queue: Alina Varkki <[email protected]>
Auto-Submit: Jack Franklin <[email protected]>
Reviewed-by: Alina Varkki <[email protected]>1 parent c147873 commit eb541d6
2 files changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
202 | 224 | | |
203 | 225 | | |
204 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
| |||
0 commit comments