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

onOpenCallback not set during setDefaults #559

Open
unluckynelson opened this issue Jul 3, 2017 · 1 comment
Open

onOpenCallback not set during setDefaults #559

unluckynelson opened this issue Jul 3, 2017 · 1 comment

Comments

@unluckynelson
Copy link

What version of ng-dialog are you using?
v1.20
What version of AngularJS are you using?
v1.4.9
What browsers are affected?
Any
Please provide either a JSFiddle, Plunkr example that replicates the issue

ngDialogProvider.setDefaults({
        onOpenCallback: function() {
            // This never runs
            console.log("Firing open dialog: "+preventNavigation);
            preventNavigation = true;
        },
        preCloseCallback: function() {
            console.log("Firing close dialog: "+preventNavigation);
            preventNavigation = false;
        }
    });

Please describe the issue
onOpenCallback is not set by the ngDialogProvider

What did you expect to happen?

The console log: Firing open dialog

What actually happened?

Nothing

@lukenofurther
Copy link

+1

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

2 participants