We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d31b6f commit e9e4ba7Copy full SHA for e9e4ba7
components/vc-menu/SubPopupMenu.jsx
@@ -65,7 +65,8 @@ export function getActiveKey(props, originalActiveKey) {
65
if (defaultActiveFirst) {
66
loopMenuItem(children, (c, i) => {
67
const propsData = c.componentOptions.propsData || {};
68
- if (activeKey === null && c && !propsData.disabled) {
+ const noActiveKey = activeKey === null || activeKey === undefined;
69
+ if (noActiveKey && c && !propsData.disabled) {
70
activeKey = getKeyFromChildrenIndex(c, eventKey, i);
71
}
72
});
0 commit comments