Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
remove any
Roman Pominovd328d6d15df4
diff --git a/apps/designer/app/shared/design-system/components/primitives/dnd/placement.tsx b/apps/designer/app/shared/design-system/components/primitives/dnd/placement.tsxindex 93adc355b5..9fbf12fdb6 100644--- a/apps/designer/app/shared/design-system/components/primitives/dnd/placement.tsx+++ b/apps/designer/app/shared/design-system/components/primitives/dnd/placement.tsx@@ -2,13 +2,18 @@ import { Box } from "../../box";export type Rect = Pick<DOMRect, "top" | "left" | "width" | "height">;+export type Parameters = {+ target: HTMLElement;+ index?: number;+};+const probe = document.createElement("div");/*** We place a div at the position where future drop will happen.* We learn if the indicator will render vertically or horizontally as well as its width/heigh.*/-export const getPlacement = ({ target, index = 0 }: any = {}) => {+export const getPlacement = ({ target, index = 0 }: Parameters) => {const { children } = target;if (index > children.length - 1) {target.appendChild(probe);