Skip to content
Snippets Groups Projects
Commit 6defa602 authored by rhenck's avatar rhenck
Browse files

Fix ToggleButton initialization

... to create a new reference for options property.
parent 960f731f
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ export class ToggleButtonElement extends InputElement {
constructor(element: Partial<ToggleButtonElement>) {
super({ height: 30, ...element });
if (element.options) this.options = element.options;
if (element.options) this.options = [...element.options];
if (element.strikeOtherOptions) this.strikeOtherOptions = element.strikeOtherOptions;
if (element.strikeSelectedOption) this.strikeSelectedOption = element.strikeSelectedOption;
if (element.verticalOrientation) this.verticalOrientation = element.verticalOrientation;
......
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