Skip to content

Commit

Permalink
fix(ButtonItem): update to account for both prop settings
Browse files Browse the repository at this point in the history
  • Loading branch information
TrainDoctor committed Aug 18, 2022
1 parent bb8a6df commit 6be0644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deck-components/ButtonItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ export interface ButtonItemProps extends ItemProps {
}

export const ButtonItem = Object.values(CommonUIModule).find((mod: any) =>
mod?.render?.toString()?.includes('"highlightOnFocus","childrenContainerWidth"'),
mod?.render?.toString()?.includes('"highlightOnFocus","childrenContainerWidth"') || mod?.render?.toString()?.includes('childrenContainerWidth:"min"'),
) as FC<ButtonItemProps>;

0 comments on commit 6be0644

Please sign in to comment.