Skip to content

Commit

Permalink
fix: Dropdown overflow string issue (#26135)
Browse files Browse the repository at this point in the history
close #26134
  • Loading branch information
afc163 committed Aug 11, 2020
1 parent cec7744 commit 9f94744
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -35,7 +35,7 @@ Array [
style="opacity:0"
>
<span>
overlayNode
string
</span>
</div>
</div>,
Expand Down
2 changes: 1 addition & 1 deletion components/dropdown/dropdown.tsx
Expand Up @@ -87,7 +87,7 @@ const Dropdown: DropdownInterface = props => {
overlayNode = overlay;
}
overlayNode = React.Children.only(
typeof overlayNode === 'string' ? <span>overlayNode</span> : overlayNode,
typeof overlayNode === 'string' ? <span>{overlayNode}</span> : overlayNode,
);

const overlayProps = overlayNode.props;
Expand Down

0 comments on commit 9f94744

Please sign in to comment.