Skip to content

Commit 9d31b6f

Browse files
committed
fix: defaultActiveFirstOption is true and activeKey is Falsy will return the next child key vueComponent#1727
1 parent 41ad4c2 commit 9d31b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-menu/SubPopupMenu.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function getActiveKey(props, originalActiveKey) {
6565
if (defaultActiveFirst) {
6666
loopMenuItem(children, (c, i) => {
6767
const propsData = c.componentOptions.propsData || {};
68-
if (!activeKey && c && !propsData.disabled) {
68+
if (activeKey === null && c && !propsData.disabled) {
6969
activeKey = getKeyFromChildrenIndex(c, eventKey, i);
7070
}
7171
});

0 commit comments

Comments
 (0)