Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/ajsf-core/src/lib/json-schema-form.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,8 @@ export class JsonSchemaFormService {
// Set value of current control
ctx.controlValue = value;
if (ctx.boundControl) {
ctx.formControl.setValue(value);
ctx.formControl.markAsDirty();
ctx.formControl.setValue(value);
}
ctx.layoutNode.value = value;

Expand Down
6 changes: 4 additions & 2 deletions projects/ajsf-core/src/lib/widget-library/input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import { JsonSchemaFormService } from '../json-schema-form.service';
[id]="'control' + layoutNode?._id"
[name]="controlName"
[readonly]="options?.readonly ? 'readonly' : null"
[type]="layoutNode?.type">
[type]="layoutNode?.type"
(focusin)="updateValue($event)">
<input *ngIf="!boundControl"
[attr.aria-describedby]="'control' + layoutNode?._id + 'Status'"
[attr.list]="'control' + layoutNode?._id + 'Autocomplete'"
Expand All @@ -42,7 +43,8 @@ import { JsonSchemaFormService } from '../json-schema-form.service';
[readonly]="options?.readonly ? 'readonly' : null"
[type]="layoutNode?.type"
[value]="controlValue"
(input)="updateValue($event)">
(input)="updateValue($event)"
(focusin)="updateValue($event)">
<datalist *ngIf="options?.typeahead?.source"
[id]="'control' + layoutNode?._id + 'Autocomplete'">
<option *ngFor="let word of options?.typeahead?.source" [value]="word">
Expand Down