@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 CHANGED
@@ -261,13 +261,11 @@ function newValueFieldState(parentInstance, parentState, key, rules, isIdKey, is
261
261
  this._focused = true;
262
262
  },
263
263
  blur() {
264
- // Now that the user is done editing the field, we sneak in some trim logic
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/form-state",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",