DMPbelgium / roadmap

5 stars 1 forks source link

Notification for unsaved changes when filling out DMP #3

Open laurastandaert opened 2 years ago

laurastandaert commented 2 years ago

What version of the DMPRoadmap code are you running? (e.g. v2.2.0) dmpplay v3.0.2

Expected behaviour: Show popup when leaving page with unsaved changes. In eg dmponline_v4, a message is displayed

Actual behaviour: No warning. Modifications are lost when 'save' button is not clicked, or when not clicked outside of input text area. When closing browser window with unsaved changes in dmponline_v4 , a popup is displayed with options 'stay on page' or 'leave page'

Steps to reproduce: modify a question answer, and go to other tab of DMP without clicking 'save' or without clicking outside of the answer text area

laurastandaert commented 2 years ago

answers are now saved automatically. Try by adding text, and then clicking next to the input, and then reload the page

laurastandaert commented 2 years ago

cf. https://github.com/DMPRoadmap/roadmap/issues/1878

osstynd commented 2 years ago

Not always saved: Fill in a value. Click on another Tab => not saved.

Fill in a value Click anywhere else within the form (or use tab) => saved