Skip to content

Commit fd41ccc

Browse files
committed
fix: control binding
1 parent 606e4d1 commit fd41ccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui/src/io/input/input.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ export class InputComponent extends DynamicSlotComponent implements ControlValue
5656
}
5757
if (!this.group) {
5858
this.group = new FormGroup({
59-
[this.property || this.field.property || 'input']: new FormControl()
59+
[this.property || this.field.property || 'input']: this.control
6060
});
6161
}
6262
const data = {
6363
group: this.group,
64-
control: this.control || this.group ? this.group.get(this.field.property) : null,
64+
control: this.control,
6565
item: this.item,
6666
field: this.field,
6767
input: this

0 commit comments

Comments
 (0)