pixelize-design-library 2.2.22 → 2.2.23

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.
@@ -122,8 +122,12 @@ function NoteTextArea(_a) {
122
122
  setFileError("");
123
123
  };
124
124
  var handleNoteChange = function (e) {
125
- setNoteValue(e.target.value);
126
- onChange === null || onChange === void 0 ? void 0 : onChange(e.target.value);
125
+ var value = e.target.value;
126
+ // Allow typing, but prevent updating state with only spaces
127
+ if (value.trim() === "" && value !== "")
128
+ return;
129
+ setNoteValue(value);
130
+ onChange === null || onChange === void 0 ? void 0 : onChange(value);
127
131
  adjustHeight();
128
132
  };
129
133
  var formatBytes = function (bytes, decimals) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "2.2.22",
3
+ "version": "2.2.23",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",