You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/components/src/internal/components/editable/actions.ts
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1454,7 +1454,8 @@ function parsePaste(value: string): ParsePastePayload {
1454
1454
data=data.push(columns);
1455
1455
});
1456
1456
}else{
1457
-
// fall back to line by line processing without parsing, to preserve quotes
1457
+
// fall back to line by line processing without parsing, to preserve quotes for each cell, so multi-value fields (MVFK, MVTC) can be parsed correctly.
1458
+
// Otherwise, PapaParse will strip quotes, making it impossible to distinguish between a comma that is part of the value vs a comma that is a delimiter for multi-value fields.
1458
1459
value.split('\n').forEach(rv=>{
1459
1460
constcolumns=List(rv.split('\t'));
1460
1461
if(numCols<columns.size){
@@ -1601,11 +1602,12 @@ async function insertPastedData(
1601
1602
}else{
1602
1603
letvalToValidate=val;
1603
1604
if(Utils.isString(val)){
1604
-
// GitHub Issue 916: Copying/pasting in the grid doesn't always act as expected
1605
-
// drag fill always quoteValueWithDelimiters, needs to remove the extra quotes before validating
0 commit comments