File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ export default [
2222 "@typescript-eslint/no-explicit-any" : "off" ,
2323 "@typescript-eslint/no-floating-promises" : "off" ,
2424 "@typescript-eslint/no-misused-promises" : "off" ,
25- "@typescript-eslint/no-non-null-asserted-optional-chain" : "off" ,
2625 "@typescript-eslint/no-unsafe-argument" : "off" ,
2726 "@typescript-eslint/no-unsafe-assignment" : "off" ,
2827 "@typescript-eslint/no-unsafe-call" : "off" ,
Original file line number Diff line number Diff line change @@ -39,8 +39,14 @@ export const Tooltip = (
3939 areaRef . current ?. getBoundingClientRect ( ) . width ,
4040 0 ,
4141 ) ;
42- default :
43- return areaRef . current ?. getBoundingClientRect ( ) ! ;
42+ default : {
43+ const rect = areaRef . current ?. getBoundingClientRect ( ) ;
44+ if ( ! rect ) {
45+ return new DOMRect ( ) ;
46+ } else {
47+ return rect ;
48+ }
49+ }
4450 }
4551 } ;
4652
You can’t perform that action at this time.
0 commit comments