Need to delete components and readd to reorder on page but wrong components get deleted.
Describe the bug When I need to reorder components I have to delete the one in the wrong place to add it again after. I open the one I want to delete, click delete then it goes back to my page and the one I said to delete is still there and the other one is gone.
To Reproduce Steps to reproduce the behavior:
- Click on component on page I want to delete
- Click delete at bottom of page
- return to page, see error
- Deleted component still there, unopened component beneath is gone
Expected behavior I expected the one that I deleted to be the one to disappear.
Screenshots If applicable, add screenshots to help explain your problem.
Repository
- designer
Desktop (please complete the following information):
- OS: windows 11
- Browser: microsoft edge
- Version 98.0.1108.50
Additional context Add any other context about the problem here.
Which component failed to delete? Does this behaviour persist for all components?
Hi James,
I don't think it is related to the components. I just made a new page to check and it happens where there are 3 components (or more maybe, I only tested 3) and you try to delete the one in the middle. Then it automatically deletes the one at the bottom (the most recent component added) rather than the one in the middle (2nd component added).
Hope that makes sense.
Cheers, Delayne
On Mon, Feb 28, 2022 at 10:24 AM JamesBoadi @.***> wrote:
Which component failed to delete? Does this behaviour persist for all components?
— Reply to this email directly, view it on GitHub https://github.com/XGovFormBuilder/digital-form-builder/issues/758#issuecomment-1054107493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXZQVVEUPMZ2KAKB5NPKWGLU5NEPNANCNFSM5ORWKEGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Yes I can see the issue now, currently components can only be deleted post order, not inorder. Probably a bug we will address in the future