Commit 3e88abc
committed
fix(material/menu): incorrectly detaching lazy content when menu is transferred to a new trigger (#31690)
The menu has some logic that detaches its lazy content when the animation is finished, however while the animation was running, the panel might've been picked up by another trigger. This ends up opening an empty menu panel to the new trigger.
These changes resolve the issue by checking if another trigger picked up the panel before detaching the lazy content.
Fixes #31687.
(cherry picked from commit b1514c4)1 parent 96f974c commit 3e88abc
File tree
1 file changed
+8
-1
lines changed1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
304 | 311 | | |
305 | 312 | | |
306 | 313 | | |
| |||
0 commit comments