diff --git a/packages/survey-react-ui/src/element.tsx b/packages/survey-react-ui/src/element.tsx index 963c4cca32..4ced38b53f 100644 --- a/packages/survey-react-ui/src/element.tsx +++ b/packages/survey-react-ui/src/element.tsx @@ -80,13 +80,16 @@ export class SurveyRowElement extends SurveyElementBase { onFocus={focusIn} ref={this.rootRef} > - {this.row.isNeedRender ? innerElement : ReactElementFactory.Instance.createElement(element.skeletonComponentName, { element: element, css: this.css, })} + {innerElement} ); } protected createElement(element: IElement, elementIndex?: number): JSX.Element { const index = elementIndex ? "-" + elementIndex : 0; + if(!this.row.isNeedRender) { + return ReactElementFactory.Instance.createElement(element.skeletonComponentName, { key: element.name + index, element: element, css: this.css, }) + } var elementType = element.getType(); if (!ReactElementFactory.Instance.isElementRegistered(elementType)) { elementType = "question";