alan-turing-institute / AssurancePlatform

Project to facilitate creation of Assurance Cases
MIT License
17 stars 6 forks source link

Added modal for confirming changes when clicking outside of the editor pane #454

Closed RichGriff closed 1 month ago

RichGriff commented 1 month ago

Size: small Priority: medium

RichGriff commented 1 month ago

This is a little more difficult with the edit-sheet component being a reusable component and the form being a child of that component tree.

I have managed to get a prompt everytime a user clicks outside - but ideally this should only be the case if field values are different.

Image

RichGriff commented 1 month ago

Above fix will show an alert only when there are un saved changes in the edit form.