I am building a dashboard control in v8 i have it working fine. i have saved button that saves some data via keyvalue service.
The dashboard is in settings section. after edits and no save navigating away to content gives you have unsaved changes message which is fine. However after save when i move i still see this message, do i need to update something like isDirty flag (not sure what this is in reality but making a guess) to stop this message appearing after a save?
how to stop you have unsaved changes message
I am building a dashboard control in v8 i have it working fine. i have saved button that saves some data via keyvalue service.
The dashboard is in settings section. after edits and no save navigating away to content gives you have unsaved changes message which is fine. However after save when i move i still see this message, do i need to update something like isDirty flag (not sure what this is in reality but making a guess) to stop this message appearing after a save?
Regards
Ismail
Hi,
I think you need to set no-dirty-check on the input fields.
https://our.umbraco.com/apidocs/v8/ui/#/api/umbraco.directives.directive:noDirtyCheck
Ok so using post https://our.umbraco.com/forum/umbraco-7/developing-umbraco-7-packages/60404-Check-if-item-is-dirty-in-property-editor#comment-211173 I now have:
which works nicely.
is working on a reply...