Commit 359fc68
fix(picker): prevent clearing input when chip menu opens
When a chip inside the picker has a menu (actions), clicking the menu
button would cause the picker to lose focus and clear its input field.
This happened because focus moved to the menu's portal, which is outside
the picker's DOM tree.
The fix checks if any chip menu is currently open before deciding to
clear the input field on blur. If a menu is open, we assume focus moved
to the menu and don't clear.
fix: #36761 parent b934660 commit 359fc68
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
550 | 555 | | |
551 | 556 | | |
552 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
553 | 579 | | |
554 | 580 | | |
555 | 581 | | |
| |||
0 commit comments