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
{{ message }}
Repository navigation
Unwanted string slice when cell value starts with ' #617
To integrate HyperFormula with Handsontable properly, we need the formulas to be "semantically reversible" - the value that a user puts in, after whatever cell type tranformations, should be the same as the serialized value they get out that we'll display a cell editor for them.
The case with escaped formulas with ' seems not to meet that goal, consider this case:
User sets cell contents to "'sum(2, 2)" (hf.setCellContents(address, "'=sum(2, 2)")).
User wants to edit cell contents, the editor value we show them directly with hf.getCellSerialized will now be =sum(2, 2), with the leading ' omitted.
User saves cell contents without any edits of their own, now hf.getCellValue returns 4 instead of the escaped formula.
Activity
izulin commentedon Apr 21, 2021
closed with #619