Commit c89126e
committed
fix: guard rAF retry in setFocusTarget with focus containment check
Skip the requestAnimationFrame retry of giveFocus() if focus has
already moved outside the block, preventing unnecessary calls when
the user has clicked elsewhere between scheduling and execution.
Signed-off-by: majiayu000 <1835304752@qq.com>1 parent 1d42fbc commit c89126e
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
0 commit comments