cdisc-org / conformance-rules-editor

MIT License
6 stars 3 forks source link

Alert user if they have unsaved changes #217

Open gerrycampion opened 1 year ago

gerrycampion commented 1 year ago

Howto: https://javascript.plainenglish.io/how-to-alert-a-user-before-leaving-a-page-in-react-a2858104ca94

AC

gerrycampion commented 1 year ago

Problem The rue editor does not select any other rule if an opened rule is not according to schema . Clicking multiple times or idle waiting also does not work.

Steps To Reproduce

open rule editor select any rule in edit pane change to rule so it is not according to schema. Now try selecting any other rule from the left rules pane Following above steps you should be able to note that, selecting a new rule does not work anymore.

Recommendations Rule Editor should notify the user when they try to select a new rule if the current rule has been edited without being saved or discarded.