@saydar/table-builder 1.0.9 → 1.0.10

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.
@@ -2989,9 +2989,11 @@ class InFilterComponent {
2989
2989
  }
2990
2990
  onValueChange(i, value) {
2991
2991
  this.value = [...this.value];
2992
- const split = splitCommaValue(value);
2993
- if (Array.isArray(split)) {
2994
- this.value.splice(i, 1, ...split);
2992
+ if (typeof value === 'string' && value.includes(',')) {
2993
+ const parts = value.split(',').map(s => s.trim());
2994
+ const leading = parts.slice(0, -1).filter(s => s);
2995
+ const last = parts[parts.length - 1];
2996
+ this.value.splice(i, 1, ...leading, last);
2995
2997
  }
2996
2998
  else {
2997
2999
  this.value[i] = value;