Skip to content

Commit

Permalink
fix: dropdown divider disappear, close #6365 (#6369)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkwolf authored Mar 20, 2023
1 parent f265a7b commit 3653f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/menu/src/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import useConfigInject from '../../config-provider/hooks/useConfigInject';
import type { ExtractPropTypes } from 'vue';
import { computed, defineComponent } from 'vue';
import { useInjectMenu } from './hooks/useMenuContext';

export const menuDividerProps = () => ({
prefixCls: String,
Expand All @@ -14,7 +14,7 @@ export default defineComponent({
name: 'AMenuDivider',
props: menuDividerProps(),
setup(props) {
const { prefixCls } = useConfigInject('menu', props);
const { prefixCls } = useInjectMenu();
const cls = computed(() => {
return {
[`${prefixCls.value}-item-divider`]: true,
Expand Down

0 comments on commit 3653f37

Please sign in to comment.