Skip to content

Commit

Permalink
feat: add emitEvents Input (#99)
Browse files Browse the repository at this point in the history
* feat: init v3 branch and add to workflow

* feat: add emitEvents Input (#98)

Co-authored-by: kim.tran <[email protected]>

---------

Co-authored-by: kim.tran <[email protected]>
  • Loading branch information
KimFFVII and kim.tran authored Feb 2, 2024
1 parent 8994807 commit f63aada
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { Directive, Input } from '@angular/core'
})
export class PatchFormGroupValuesDirective {
@Input() formGroup: any
@Input() emitEvents = false
@Input()
set ocxPatchFormGroupValues(val: any) {
if (!val) return
this.formGroup.patchValue(val, { emitEvent: false })
this.formGroup.patchValue(val, { emitEvent: this.emitEvents })
}
}

0 comments on commit f63aada

Please sign in to comment.