LightningFlowComponents
LightningFlowComponents copied to clipboard
*Datatable v.4.0.11 (also v.4.0.9)* - _(Saving Edits)_ - Consecutive Edits to Non-Date Fields Throw Error on Save
Steps to reproduce
From a datatable LWC surfaced through a flow:
- Edit any combination of rows/columns, then click [Save] (these will be referred to as “Round 1 Edits” later)
- Edit any combination of rows/columns, and click [Save] (these will be referred to as “Round 2+ Edits” later)
Expected behaviour
- Round 2+ Edits are saved and combined with Round 1 Edits
- Any further edits (Round 3, Round 4, ...) are also saveable
Actual behaviour
- Component error screen is displayed as shown below, for every subsequent [Save] attempt.
- BUT can save Round 2+ edits if the following criteria are met after exiting the error message:
- Clicking [Cancel] with the same edits
- Editing more rows to include additional changes to at least two unique date fields, then clicking [Save]
Screenshots
Screenshot Contents Summary
From Screenshot:- Message: "[t[e].slice is not a function]"
- Component Descriptor: markup://c:datatable
- File Name: https://xxxxxxxxxx.sandbox.lightning.force.com/lightning/action/quick/modules/c/datatable.js
- Function: eval
- Line: 1
- Column: 37807
- Stack Trace: "eval()@https://xxxxxxxxxx.sandbox.lightning.force.com/lightning/action/quick/modules/c/datatable.js:1:37087 eval()@https://xxxxxxxxxx.sandbox.lightning.force.com/lightning/action/quick/modules/c/datatable.js:1:37023 $e.handleSave()@https://xxxxxxxxxx.sandbox.lightning.force.com/lightning/action/quick/modules/c/datatable.js:1:36317"
This will be fixed in v4.0.12
Thanks Eric :)
This has been resolved in version 4.0.12. https://unofficialsf.com/datatable-lightning-web-component-for-flow-screens-2/#Installation