테스트테이블 생성 및 오류 수정
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import React from "react";
|
||||
import { LayoutComponent, ComponentData } from "@/types/screen";
|
||||
import { LayoutRegistry } from "./LayoutRegistry";
|
||||
import { filterDOMProps } from "@/lib/utils/domPropsFilter";
|
||||
|
||||
export interface DynamicLayoutRendererProps {
|
||||
layout: LayoutComponent;
|
||||
@@ -70,6 +71,9 @@ export const DynamicLayoutRenderer: React.FC<DynamicLayoutRendererProps> = ({
|
||||
|
||||
// 레이아웃 렌더링 실행
|
||||
try {
|
||||
// DOM 안전한 props만 필터링
|
||||
const safeProps = filterDOMProps(restProps);
|
||||
|
||||
return (
|
||||
<LayoutComponent
|
||||
layout={layout}
|
||||
@@ -84,7 +88,7 @@ export const DynamicLayoutRenderer: React.FC<DynamicLayoutRendererProps> = ({
|
||||
onUpdateLayout={onUpdateLayout}
|
||||
className={className}
|
||||
style={style}
|
||||
{...restProps}
|
||||
{...safeProps}
|
||||
/>
|
||||
);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user