diff --git a/packages/devextreme-react/src/html-editor.ts b/packages/devextreme-react/src/html-editor.ts index 17ef91c9ae12..fb151b646697 100644 --- a/packages/devextreme-react/src/html-editor.ts +++ b/packages/devextreme-react/src/html-editor.ts @@ -93,15 +93,18 @@ type IConverterProps = React.PropsWithChildren<{ fromHtml?: ((value: string) => string); toHtml?: ((value: string) => string); }> -const _componentConverter = memo( - (props: IConverterProps) => { - return React.createElement(NestedOption, { ...props }); - } -); - -const Converter: typeof _componentConverter & IElementDescriptor = Object.assign(_componentConverter, { - OptionName: "converter", -}) +const _componentConverter = (props: IConverterProps) => { + return React.createElement(NestedOption, { + ...props, + elementDescriptor: { + OptionName: "converter", + }, + }); +}; + +const Converter = Object.assign(_componentConverter, { + componentType: "option", +}); // owners: // ImageUpload