Skip to content

Commit e692851

Browse files
committed
[ionic] Fix getEventValue & fix color in enum control
1 parent 3bb3be1 commit e692851

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ionic/src/controls/enum/enum-control.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { JsonFormsControl } from '@jsonforms/angular';
88
template: `
99
<ion-item>
1010
<ion-label>{{label}}</ion-label>
11-
<ion-label stacked *ngIf="error" color="errora">{{error}}</ion-label>
11+
<ion-label stacked *ngIf="error" color="error">{{error}}</ion-label>
1212
<ion-select [ngModel]="data" (ionChange)="onChange($event)">
1313
<ion-option *ngFor="let option of options" value="{{option}}">
1414
{{option}}
@@ -28,6 +28,8 @@ export class EnumControlRenderer extends JsonFormsControl {
2828
mapAdditionalProps() {
2929
this.options = this.scopedSchema.enum;
3030
}
31+
32+
getEventValue = (ev: any) => ev;
3133
}
3234

3335
export const enumControlTester: RankedTester = rankWith(

0 commit comments

Comments
 (0)