Skip to content
Snippets Groups Projects
Commit 222612e0 authored by rhenck's avatar rhenck
Browse files

[editor] Fix radio-group duplication

#283
parent 4b7df84a
No related branches found
No related tags found
No related merge requests found
Pipeline #39936 passed
import { Type } from '@angular/core';
import { ElementFactory } from 'common/util/element.factory';
import { BasicStyles, InputElement, PositionedUIElement, PositionProperties } from 'common/models/elements/element';
import {
BasicStyles, InputElement, PositionedUIElement, PositionProperties
} from 'common/models/elements/element';
import { ElementComponent } from 'common/directives/element-component.directive';
import { RadioButtonGroupComponent } from 'common/components/input-elements/radio-button-group.component';
......@@ -15,7 +17,7 @@ export class RadioButtonGroupElement extends InputElement implements PositionedU
constructor(element: Partial<RadioButtonGroupElement>, ...args: unknown[]) {
super({ height: 100, ...element }, ...args);
if (element.richTextOptions) this.richTextOptions = element.richTextOptions;
if (element.richTextOptions) this.richTextOptions = [...element.richTextOptions];
if (element.alignment) this.alignment = element.alignment;
if (element.strikeOtherOptions) this.strikeOtherOptions = element.strikeOtherOptions;
this.position = ElementFactory.initPositionProps({ marginBottom: 30, ...element.position });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment