From 9a724ccfacbd48f18a8b8bf394140f8ca3ce8d8c Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Date: Thu, 7 Dec 2017 12:57:47 -0500 Subject: [PATCH] fix(wizard): update wizard on parameter changes Change appropriate parameters to one-way bindings. --- src/wizard/examples/wizard.js | 7 +++++-- src/wizard/wizard.component.js | 26 ++++++++++++++------------ 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/wizard/examples/wizard.js b/src/wizard/examples/wizard.js index e5d26343e..20317bc8d 100644 --- a/src/wizard/examples/wizard.js +++ b/src/wizard/examples/wizard.js @@ -53,7 +53,7 @@ ctrl.selectedStep.stepPriority)); @@ -215,6 +216,7 @@ angular.module('patternfly.wizard').component('pfWizard', { ctrl.stepClick = function (step) { if (step.allowClickNav && + ctrl.selectedStep && !ctrl.wizardDone && ctrl.selectedStep.okToNavAway && (ctrl.selectedStep.nextEnabled || (step.stepPriority < ctrl.selectedStep.stepPriority)) &&