@homebound/form-state 2.4.0 → 2.4.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.
- package/dist/formState.js +2 -4
- package/package.json +1 -1
package/dist/formState.js
CHANGED
|
@@ -261,13 +261,11 @@ function newValueFieldState(parentInstance, parentState, key, rules, isIdKey, is
|
|
|
261
261
|
this._focused = true;
|
|
262
262
|
},
|
|
263
263
|
blur() {
|
|
264
|
-
|
|
265
|
-
if (this._focused) {
|
|
266
|
-
this.maybeAutoSave();
|
|
267
|
-
}
|
|
264
|
+
this.maybeAutoSave();
|
|
268
265
|
this._focused = false;
|
|
269
266
|
},
|
|
270
267
|
maybeAutoSave() {
|
|
268
|
+
// Now that the user is done editing the field (note maybe w/o blurring, i.e. if they hit enter), we sneak in some trim logic
|
|
271
269
|
this.maybeTrim();
|
|
272
270
|
// touched is readonly, but we're allowed to change it
|
|
273
271
|
this.touched = true;
|