Commit 4603bad
committed
Guard drawer re-entry when open flips false before enter microtask
A fast toggle could set open=false after _show() scheduled its
updateComplete callback but before it ran. The callback then set
_animState back to 'entering', re-opening the drawer while open was
false — leaving it stuck open and scroll-locked, since Escape and
backdrop dismissal both gate on this.open. Bail out of the open
sequence if open is no longer true.1 parent 5007205 commit 4603bad
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
246 | 253 | | |
247 | 254 | | |
248 | 255 | | |
| |||
0 commit comments