Skip to content

Commit

Permalink
Merge pull request #127 from simpleAndElegant/fix/menu
Browse files Browse the repository at this point in the history
fix(submenu): add conditional judgment named disable to handleSubmenu…
  • Loading branch information
PengYYYYY authored Dec 31, 2021
2 parents f13b8b9 + 45db957 commit 7942138
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/menu/submenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default defineComponent({
selectSubMenu(isOpen ? menuItems.value : []);
};
const handleSubmenuItemClick = () => {
if (props.disabled) return;
open(props.value);
};

Expand Down

0 comments on commit 7942138

Please sign in to comment.