Repository navigation
Commit b44ae7e
committed
fix(aria/menu): keep disabled items natively disabled when softDisabled is false
Clearing the native disabled attribute on every MenuItem broke menus that
set softDisabled to false and rely on a disabled <button> item being
natively disabled. Follow the parent's softDisabled instead, as MenuBar
and MenuTrigger do: soft-disabled menus (the default) clear the attribute,
others keep it.1 parent 30571ec commit b44ae7e
2 files changed
Lines changed: 32 additions & 5 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
597 | 621 | | |
598 | 622 | | |
599 | 623 | | |
| |||
1541 | 1565 | | |
1542 | 1566 | | |
1543 | 1567 | | |
1544 | | - | |
| 1568 | + | |
1545 | 1569 | | |
1546 | 1570 | | |
1547 | 1571 | | |
| |||
1550 | 1574 | | |
1551 | 1575 | | |
1552 | 1576 | | |
1553 | | - | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
0 commit comments