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/
2121.travis.yml
2222.editorconfig
2323
24- // others
24+ // misc folders
2525.vscode /
2626.husky /
2727.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 = ({
1919 events = [ 'hover' ] ,
2020 positionStrategy = 'absolute' ,
2121 middlewares,
22- wrapper : WrapperElement = 'div' ,
22+ wrapper : WrapperElement ,
2323 children = null ,
2424 delayShow = 0 ,
2525 delayHide = 0 ,
@@ -38,7 +38,7 @@ const Tooltip = ({
3838 setIsOpen,
3939} : ITooltip ) => {
4040 const tooltipRef = useRef < HTMLElement > ( null )
41- const tooltipArrowRef = useRef < HTMLDivElement > ( null )
41+ const tooltipArrowRef = useRef < HTMLElement > ( null )
4242 const tooltipShowDelayTimerRef = useRef < NodeJS . Timeout | null > ( null )
4343 const tooltipHideDelayTimerRef = useRef < NodeJS . Timeout | null > ( null )
4444 const [ inlineStyles , setInlineStyles ] = useState ( { } )
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export interface ITooltip {
4343 id ?: string
4444 variant ?: VariantType
4545 anchorId ?: string
46- wrapper ? : WrapperType
46+ wrapper : WrapperType
4747 children ?: ChildrenType
4848 events ?: EventsType [ ]
4949 positionStrategy ?: PositionStrategy
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ const TooltipController = ({
8585 setTooltipOffset ( value === null ? offset : Number ( value ) )
8686 } ,
8787 wrapper : ( value ) => {
88- setTooltipWrapper ( ( value as WrapperType ) ?? 'div' )
88+ setTooltipWrapper ( ( value as WrapperType ) ?? wrapper )
8989 } ,
9090 events : ( value ) => {
9191 const parsed = value ?. split ( ' ' ) as EventsType [ ]
You can’t perform that action at this time.
0 commit comments