ref(TS) Improve TS (#13120)

Remove unnecessary @ts-ignore
Fix some TS errors
This commit is contained in:
Robert Pintilii
2023-03-29 10:16:54 +03:00
committed by GitHub
parent b942ce9378
commit 29945f4809
57 changed files with 122 additions and 155 deletions

View File

@@ -197,8 +197,7 @@ const ContextMenu = ({
const { current: container } = containerRef;
// make sure the max height is not set
// @ts-ignore
container.style.maxHeight = null;
container.style.maxHeight = 'none';
const { offsetTop, offsetParent: { offsetHeight, scrollTop } } = offsetTarget;
let outerHeight = getComputedOuterHeight(container);
let height = Math.min(MAX_HEIGHT, outerHeight);