Ensure correct form's hidden input for selectedIds #891
Reference in New Issue
Block a user
Delete Branch "sync-bulk-select-deselect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When adding transactions for bulk edit/delete, clicking on “Delete” or “Edit” icons creates hidden form inputs for the selected transactions.
If the modal is closed and a selected transaction(s) is deselected , its hidden form input is already added and wont be removed upon deselecting hence will be accidentally deleted (or updated) on submit.
This PR addresses that by reseting the
paramName, before creating hidden form inputs.https://github.com/maybe-finance/maybe/assets/41262193/a3a899dd-4cdd-41bb-990e-dd37cb50a899
Really good catch here, and thanks for the fix! That's definitely not a fun bug to deal with as a user :)