1 parent 0ab04b7 commit 4e7e56eCopy full SHA for 4e7e56e
1 file changed
src/columns/textColumn.tsx
@@ -175,7 +175,7 @@ export function createTextColumn<T = string | null>({
175
formatInputOnFocus = (value) => String(value ?? ''),
176
formatForCopy = (value) => String(value ?? ''),
177
parsePastedValue = (value) =>
178
- (value.replace(/[\n\r]+/g, ' ').trim() || (null as unknown)) as T,
+ ((value.replace(/[\n\r]+/g, ' ') ?? '').trim() || (null as unknown)) as T,
179
}: TextColumnOptions<T> = {}): Partial<Column<T, TextColumnData<T>, string>> {
180
return {
181
component: TextComponent as unknown as CellComponent<T, TextColumnData<T>>,
0 commit comments