Skip to content

Commit

Permalink
liten fix för dropdown select men inget som renderar i en ny version
Browse files Browse the repository at this point in the history
  • Loading branch information
aljlo2 committed Jun 17, 2024
1 parent d586c0d commit ee05885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</div>
<div class="one-third">
<p>Inaktiv</p>
<vgr-dropdown-select width="130px" [disabled]="true" [formControl]="form">
<vgr-dropdown-select width="130px" [formControl]="form1">
<vgr-dropdown-item [value]="itemValue">{{itemLabel}}</vgr-dropdown-item>
</vgr-dropdown-select>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class DropdownSelectDocumentationComponent {
items50: string[];
open1: boolean = true;
form: FormControl;
form1: FormControl;
formControl: FormControl;
formControlDisabled = false;
itemLabel = 'Ett långt alternativ som skrivs ut i helhet';
Expand Down Expand Up @@ -232,6 +233,7 @@ export class DropdownSelectDocumentationComponent {
this.items10 = this.getItems(10);
this.items50 = this.getItems(50);
this.form = new FormControl(this.itemValue);
this.form1 = new FormControl({value: this.itemValue, disabled: true});
this.formControl = new FormControl('', Validators.required);
}

Expand Down

0 comments on commit ee05885

Please sign in to comment.