Skip to content

Commit 96ef267

Browse files
fix(command): fix canExecuteFromNgForm initial valid (#15)
1 parent f3fdd92 commit 96ef267

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 3.1.1 (2025-02-20)
2+
3+
### 🩹 Fixes
4+
5+
- **command:** fix `canExecuteFromNgForm` initial valid
6+
17
## 3.1.0 (2025-02-16)
28

39
### 🚀 Features

libs/ngx.command/src/command.util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function canExecuteFromNgForm(
5555
filter(x => x instanceof StatusChangeEvent),
5656
map(x => x.status === "VALID"),
5757
distinctUntilChanged(),
58-
startWith(form.pristine),
58+
startWith(form.valid),
5959
) : of(true);
6060

6161
return combineLatest([pristine$, valid$]).pipe(

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ssv/ngx",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"packageManager": "[email protected]",
55
"volta": {
66
"node": "20.18.1"

0 commit comments

Comments
 (0)