Skip to content

Commit

Permalink
fix: read tooltip placement increase fallback logic (#2338)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal authored Jul 12, 2024
1 parent 46e633f commit 83473a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/semi-ui/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
const triangleCls = classNames([`${prefixCls}-icon-arrow`]);
const bgColor = get(style, 'backgroundColor');

const iconComponent = placement.includes('left') || placement.includes('right') ?
const iconComponent = placement?.includes('left') || placement?.includes('right') ?
<TriangleArrowVertical /> :
<TriangleArrow />;
if (showArrow) {
Expand Down

0 comments on commit 83473a5

Please sign in to comment.