Autosave not working after publishing

Vote:
 

I have created a custom property with dojo. As soon as a property on this page changes, Episerver autosaves the change and the user has the possibility to publish these changes. Until here everything seems to work as it should be (also for my own property). However, after publishing we can change properties as much as we like, but autosave is never executed and the user can't publish these changes because episerver is thinking nothing has changed (also when we do not change any thing on our custom property). I searched a lot on the internet and the forum and I first thought it has something to do with the this.onChange(value). A lot of debugging and googleing later I realized that this.onChange is called as it should; the value is even changed but nothing happend. The problem is not only with my own property but with all properties on the page (but only after a first publish in the current session, after hitting CRTL-F5 it works again once). I start removing js code from the dojo js and realized that as soon as the next lines of code are added this behaviour (of only publishing once) occured;

I think the problem is somewhere with the GridContainer, or I use "this.container.appendChild(layout.domNode);" wrong.

Any one an idea?

define([
    "dojo/_base/array",
    "dojo/_base/declare",
    "dijit/registry",

    "dijit/_Widget",
    
    "dijit/_TemplatedMixin",
    "dijit/_Container",

    "dojox/layout/GridContainer",
    "dijit/form/CheckBox"
],
function (
    array,
    declare,
    registry,

    _Widget,
    
    _TemplatedMixin,
    _Container,

    GridContainer,
    CheckBox
) {
    return declare("app.editors.SortableMultiSelection", [
        _Widget,
        _TemplatedMixin,
        _Container], {
            templateString: "",
            postCreate: function () {
                this.inherited(arguments);
                var layout = new GridContainer({
                    nbZones: 1,
                    id: "grid_" + this.name,
                    isAutoOrganized: true
                });

                //this.connect(layout, "onBlur", "_change");

                this.container.appendChild(layout.domNode);
            }
        }
    );
});
#173801
Jan 10, 2017 11:56
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.