Skip to content

Commit

Permalink
fix(DropdownMenuButton): ボタンリストの装飾適用条件を緩和
Browse files Browse the repository at this point in the history
  • Loading branch information
uknmr committed Dec 5, 2024
1 parent 1463828 commit ba0d1e5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import React, {
import innerText from 'react-innertext'
import { tv } from 'tailwind-variants'

import { Dropdown, DropdownContent, DropdownTrigger } from '..'
import { Dropdown, DropdownContent, DropdownMenuGroup, DropdownTrigger } from '..'
import { AnchorButton, Button, BaseProps as ButtonProps } from '../../Button'
import { RemoteDialogTrigger } from '../../Dialog'
import { FaCaretDownIcon, FaEllipsisIcon } from '../../Icon'
Expand Down Expand Up @@ -119,9 +119,7 @@ export const renderButtonList = (children: Actions) =>
return renderButtonList(item.props.children)
}

if (
!(item.type === Button || item.type === AnchorButton || item.type === RemoteDialogTrigger)
) {
if (item.type === DropdownMenuGroup) {
return item
}

Expand Down

0 comments on commit ba0d1e5

Please sign in to comment.