@bpmn-io/form-js-viewer 1.15.0 → 1.15.3

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/index.cjs CHANGED
@@ -5164,13 +5164,22 @@ function Textfield(props) {
5164
5164
  const {
5165
5165
  required
5166
5166
  } = validate;
5167
- const [onInputChange, flushOnChange] = useFlushDebounce(({
5167
+ const [onChange, flushOnChange] = useFlushDebounce(({
5168
5168
  target
5169
5169
  }) => {
5170
5170
  props.onChange({
5171
5171
  value: target.value
5172
5172
  });
5173
5173
  });
5174
+
5175
+ /**
5176
+ * @param {import('preact').JSX.TargetedEvent<HTMLInputElement, Event>} event
5177
+ */
5178
+ const onInputChange = event => {
5179
+ onChange({
5180
+ target: event.target
5181
+ });
5182
+ };
5174
5183
  const onInputBlur = () => {
5175
5184
  flushOnChange && flushOnChange();
5176
5185
  onBlur && onBlur();
@@ -5740,7 +5749,10 @@ function serializeCellData(cellData) {
5740
5749
  if (cellData !== null && typeof cellData === 'object') {
5741
5750
  return JSON.stringify(cellData);
5742
5751
  }
5743
- return `${cellData || ''}`;
5752
+ if (cellData === null || cellData === undefined) {
5753
+ return '';
5754
+ }
5755
+ return `${cellData}`;
5744
5756
  }
5745
5757
 
5746
5758
  const FILE_PICKER_FILE_KEY_PREFIX = 'files::';