@dereekb/dbx-form 7.6.0 → 7.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -158,7 +158,7 @@ class DbxActionFormDirective {
|
|
|
158
158
|
.pipe(delay(0), filter((x) => x.state !== DbxFormState.INITIALIZING), switchMap((event) => {
|
|
159
159
|
return this.form.getValue().pipe(first(), exhaustMap((value) => {
|
|
160
160
|
// Use both changes count and whether or not something was in the past to guage whether or not the item has been touched.
|
|
161
|
-
// Angular Form's untouched is whether or not focus has been lost but we can still
|
|
161
|
+
// Angular Form's untouched is whether or not focus has been lost but we can still receive value updates.
|
|
162
162
|
// More than a certain amount of updates implies that it is being typed into.
|
|
163
163
|
const isProbablyTouched = !event.untouched || ((event.changesCount ?? 0) > 3 && isPast(addSeconds(event.lastResetAt ?? new Date(), 2)));
|
|
164
164
|
let validatorObs;
|