Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking cancel on the Add Bike form does not hide the colorpicker #74

Open
sidfarkus opened this issue Oct 19, 2013 · 2 comments
Open
Labels

Comments

@sidfarkus
Copy link
Collaborator

If you click cancel while the colorpicker is up the colorpicker does not disappear.

@sidfarkus sidfarkus reopened this Oct 19, 2013
@sidfarkus
Copy link
Collaborator Author

Wrong button

@cccycling
Copy link
Collaborator

add custome destroy functions to your UX.

// private
    beforeDestroy: function() {
        var me = this;
        if (me.rendered) {
            me.clearTip();
        }
        if (me.menu && me.destroyMenu !== false) {
            Ext.destroy(me.menu);
        }
        Ext.destroy(me.btnInnerEl, me.repeater);
        me.callParent();
    },

    // private
    onDestroy: function() {
        var me = this;
        if (me.rendered) {
            me.doc.un('mouseover', me.monitorMouseOver, me);
            me.doc.un('mouseup', me.onMouseUp, me);
            delete me.doc;
            Ext.ButtonToggleManager.unregister(me);

            Ext.destroy(me.keyMap);
            delete me.keyMap;
        }
        me.callParent();
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants