@xh/hoist 53.2.0 → 53.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v53.2.1 - 2023-01-19
4
+ * Fixed a bug in which grid cell editors would drop a single character edit.
5
+
3
6
  ## v53.2.0 - 2022-11-15
4
7
 
5
8
  ### 🎁 New Features
@@ -86,8 +86,8 @@ class InlineEditorModel extends HoistModel {
86
86
  }
87
87
 
88
88
  focus() {
89
- const {inputEl} = this;
90
- if (!inputEl) return;
89
+ const {inputEl, ref} = this;
90
+ if (!inputEl || !ref.current) return;
91
91
 
92
92
  inputEl.focus();
93
93
 
@@ -95,7 +95,7 @@ class InlineEditorModel extends HoistModel {
95
95
  if (isNil(charPress)) {
96
96
  inputEl.select();
97
97
  } else {
98
- inputEl.value = charPress;
98
+ ref.current.noteValueChange(charPress);
99
99
  }
100
100
  }
101
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "53.2.0",
3
+ "version": "53.2.1",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",