本文介绍了错误:初始化后无法更改选择的“多重"模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
错误图片:
<div class="pb-1"><md2-select placeholder="{{'WidgetType'|translate:lang}}" class="input_custom_width"(change)="widgetNode($event.value)" required><md2-option *ngFor="let widgetType of widgetTypeAry" [value]="widgetType.value">{{widgetType.name}}</md2-option></md2-select>
<div fxFlex.gt-lg="100" fxFlex="100" *ngIf="fieldsObj['node'] && showRequestAction" ><div class="pb-1"><md2-select placeholder="{{'Node'|translate:lang}}" [formControl]="editWidgetForm.controls['nodeId']" [(ngModel)]="nodeId" class="input_custom_width" [(multiple)]="isMultiNode" (change)="nodeChange($event.value)" required><md2-select-header><md-input-container class="input_custom_width"><input mdInput type="text" placeholder="{{'Search'| translate:lang}}" [ngModelOptions]="{standalone: true}" [(ngModel)]="searchNode"/></md-input-container></md2-select-header><md2-option *ngFor="let node of nodesAry | filterPipe : searchNode" [value]="node.value">{{ 节点名}}</md2-option></md2-select><small *ngIf="editWidgetForm.controls['nodeId'].hasError('required') &&editWidgetForm.controls['nodeId'].touched" class="mat-text-warn">{{'nodeReq'|translate:lang}}</small>