File tree Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Expand file tree Collapse file tree 4 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,15 @@ coverage/
21
21
.travis.yml
22
22
.editorconfig
23
23
24
- // others
24
+ // misc folders
25
25
.vscode /
26
26
.husky /
27
27
.github /
28
+
29
+ // misc files
30
+ bundlesize.config.json
31
+
32
+ // bundler - rollup
33
+ rollup.config.dev.js
34
+ rollup.config.prod.js
35
+ rollup.config.types.js
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const Tooltip = ({
19
19
events = [ 'hover' ] ,
20
20
positionStrategy = 'absolute' ,
21
21
middlewares,
22
- wrapper : WrapperElement = 'div' ,
22
+ wrapper : WrapperElement ,
23
23
children = null ,
24
24
delayShow = 0 ,
25
25
delayHide = 0 ,
@@ -38,7 +38,7 @@ const Tooltip = ({
38
38
setIsOpen,
39
39
} : ITooltip ) => {
40
40
const tooltipRef = useRef < HTMLElement > ( null )
41
- const tooltipArrowRef = useRef < HTMLDivElement > ( null )
41
+ const tooltipArrowRef = useRef < HTMLElement > ( null )
42
42
const tooltipShowDelayTimerRef = useRef < NodeJS . Timeout | null > ( null )
43
43
const tooltipHideDelayTimerRef = useRef < NodeJS . Timeout | null > ( null )
44
44
const [ inlineStyles , setInlineStyles ] = useState ( { } )
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export interface ITooltip {
43
43
id ?: string
44
44
variant ?: VariantType
45
45
anchorId ?: string
46
- wrapper ? : WrapperType
46
+ wrapper : WrapperType
47
47
children ?: ChildrenType
48
48
events ?: EventsType [ ]
49
49
positionStrategy ?: PositionStrategy
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ const TooltipController = ({
85
85
setTooltipOffset ( value === null ? offset : Number ( value ) )
86
86
} ,
87
87
wrapper : ( value ) => {
88
- setTooltipWrapper ( ( value as WrapperType ) ?? 'div' )
88
+ setTooltipWrapper ( ( value as WrapperType ) ?? wrapper )
89
89
} ,
90
90
events : ( value ) => {
91
91
const parsed = value ?. split ( ' ' ) as EventsType [ ]
You can’t perform that action at this time.
0 commit comments