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

OffCanvas: bug close offcanvas panel on click #81

Open
Gambero81 opened this issue Apr 13, 2018 · 0 comments
Open

OffCanvas: bug close offcanvas panel on click #81

Gambero81 opened this issue Apr 13, 2018 · 0 comments

Comments

@Gambero81
Copy link

Hi, i have a problem with offCanvas component caused by angular-foundation.js code.
In particular the code who has the issue is relative to 'li' directive:

`.directive('li', function () {
'ngInject';

    return {
        require: '?^^offCanvas',
        restrict: 'E',
        link: function link($scope, element, attrs, offCanvas) {
            if (!offCanvas || offCanvas.offCanvasWrapper.disableAutoClose)
            {
                return;
            }
            element.on('click', function () {
                offCanvas.offCanvasWrapper.hide();
            });
        }
    };
});`

when in my template i click on an element inside the canvas (i use kendo-ui widgets) in some circumstances the code go inside element.on('click', function () { and the canvas close itself.

the problem is not only that canvas is closed, but if i have the content-overlay property set to true, cause the overlay to stay on top of template and lock all user interface.

As workaround i solved this bug removing the line offCanvas.offCanvasWrapper.hide()

what is the porpouse of this code? why it have to close canvas on click?
Thanks

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

No branches or pull requests

1 participant