Repository navigation
Commit e4e41af
committed
fix: keep tooltip anchors out of merged semantics nodes
A Tooltip is an OverlayPortal whose overlay content is linked to the anchor by
a traversal-parent identifier. IndexedSemantics merges adjacent rows of a
ListView into a single node, and the merge drops that identifier instead of
combining it, leaving the tooltip node orphaned outside the tree. Windows
then rejects the whole accessibility update:
Failed to update ui::AXTree, error: N will not be in the tree and is not the
new root.
Wrapping each anchor in Semantics(container: true) keeps it un-mergeable.
This is an engine-side framework bug (flutter/flutter#182444), still unfixed
in the pinned engine, so the workaround needs to stay.1 parent c5740f5 commit e4e41af
2 files changed
Lines changed: 30 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
309 | 323 | | |
310 | 324 | | |
311 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
312 | 329 | | |
313 | 330 | | |
314 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
144 | 155 | | |
145 | 156 | | |
146 | 157 | | |
| |||
0 commit comments