File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import type { TriggerProps } from 'rc-trigger';
5
5
import type { AlignType , AnimationType , ActionType } from 'rc-trigger/lib/interface' ;
6
6
import { placements } from './placements' ;
7
7
import Popup from './Popup' ;
8
- import classNames from 'classnames' ;
9
8
10
9
export interface TooltipProps extends Pick < TriggerProps , 'onPopupAlign' | 'builtinPlacements' > {
11
10
trigger ?: ActionType | ActionType [ ] ;
@@ -102,9 +101,7 @@ const Tooltip = (props: TooltipProps, ref) => {
102
101
103
102
return (
104
103
< Trigger
105
- popupClassName = { classNames ( overlayClassName , {
106
- [ `${ prefixCls } -show-arrow` ] : showArrow ,
107
- } ) }
104
+ popupClassName = { overlayClassName }
108
105
prefixCls = { prefixCls }
109
106
popup = { getPopupElement }
110
107
action = { trigger }
Original file line number Diff line number Diff line change @@ -174,7 +174,6 @@ describe('rc-tooltip', () => {
174
174
</ Tooltip > ,
175
175
) ;
176
176
fireEvent . click ( container . querySelector ( '.target' ) ) ;
177
- expect ( container . querySelector ( '.rc-tooltip' ) . classList ) . toContain ( 'rc-tooltip-show-arrow' ) ;
178
177
expect ( container . querySelector ( '.rc-tooltip-content' ) . outerHTML ) . toBe (
179
178
'<div class="rc-tooltip-content"><div class="rc-tooltip-arrow"></div><div class="rc-tooltip-inner" role="tooltip"><strong class="x-content">Tooltip content</strong></div></div>' ,
180
179
) ;
@@ -192,7 +191,6 @@ describe('rc-tooltip', () => {
192
191
</ Tooltip > ,
193
192
) ;
194
193
fireEvent . click ( container . querySelector ( '.target' ) ) ;
195
- expect ( container . querySelector ( '.rc-tooltip' ) . classList ) . toContain ( 'rc-tooltip-show-arrow' ) ;
196
194
expect ( container . querySelector ( '.rc-tooltip-content' ) . outerHTML ) . toBe (
197
195
'<div class="rc-tooltip-content"><div class="rc-tooltip-arrow"></div><div class="rc-tooltip-inner" role="tooltip"><strong class="x-content">Tooltip content</strong></div></div>' ,
198
196
) ;
You can’t perform that action at this time.
0 commit comments