renew-js / renew-lib

Core component of renew-js for displaying and modifying drawings
Other
0 stars 0 forks source link

Prevent user from closing window when not saved. #85

Open tim-kilian opened 5 years ago

tim-kilian commented 5 years ago

Problem

A user could be frustrated when he accidentally closes the window on a not saved active drawing.

Solution

window onunload: when confirm false, prevent default. Check element registery empty / changes.

Additional context

Compare with bpmn-io

tim-kilian commented 5 years ago

This should happen in the renew-ui.