Skip to content

Commit

Permalink
Merge pull request #147 from erqk/v8
Browse files Browse the repository at this point in the history
V8
  • Loading branch information
erqk authored Sep 25, 2024
2 parents 1f8dd57 + 3196313 commit a27019f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 8.4.3 (2024-09-25)

[bc6ed14]: https://github.com/erqk/ng-dynamic-json-form/commit/bc6ed149aacd34960c2a30fac226411a5ee2438e

| Commit | Type | Description |
| --------- | ---- | --------------------------------------------- |
| [bc6ed14] | fix | Should call `onChange()` if control is dirty. |

# 8.4.2 (2024-09-25)

[650215c]: https://github.com/erqk/ng-dynamic-json-form/commit/650215c37cee4928184ff0b374501459be3fa644
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class CustomControlComponent implements ControlValueAccessor, Validator {

registerOnChange(fn: any): void {
this.control?.valueChanges
.pipe(filter(() => this.userInteracted))
.pipe(filter(() => this.userInteracted || !!this.control?.dirty))
.subscribe(fn);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-dynamic-json-form",
"version": "8.4.2",
"version": "8.4.3",
"author": {
"name": "erqk",
"url": "https://github.com/erqk"
Expand Down

0 comments on commit a27019f

Please sign in to comment.