Commit 383ccf5
committed
fix(menu): only pass overlayClassName to SubMenu children
Menu was passing overlayClassName to all children via cloneElement, but only
SubMenu uses it. MenuItem and MenuItemGroup spread otherProps onto <li>,
leaking the unrecognized prop to the DOM.1 parent d3d550c commit 383ccf5
1 file changed
Lines changed: 3 additions & 4 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
0 commit comments