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

Fixed order in wich the Finish is triggered #9

Open
3 tasks done
scastel83 opened this issue Apr 7, 2017 · 0 comments
Open
3 tasks done

Fixed order in wich the Finish is triggered #9

scastel83 opened this issue Apr 7, 2017 · 0 comments

Comments

@scastel83
Copy link

scastel83 commented Apr 7, 2017

value: function finish() {
if (this._current === this.lastIndex()) {
var current = this.current();

        if (current.validate()) {
          current.leave('error');
          current.enter('done');
          this.trigger('finish');<<--- put it here after done , so we are sure the CSS does note change after the finish is triggerd.
        } else {
          current.enter('error');
        }
      }

#here i put my reset on finish event, but always had the green of done on a tab element..

$('#exampleWizardForm').on('wizard::finish', function (e) {
      resetmyWizardry();
});

Checklist

  • I'm using version* jQuery wizard v0.4.3
  • My browser is: Mac, Chrome
  • I am sure this issue is not a duplicate? Yes

Description

[Description of the bug, enhancement, or question]
Problem, finish event is triggered before css changes..
[Please tag accordingly]

How can we reproduce this bug?

  1. [First Step] put an alertbox, and you will get the alert before the css has changed.
  2. [Second Step]
  3. [and so on...]

What did you expect to happen?

i wanted to reset the wizard and have all the tabs, be the same color,
but when i did reset i stil had the finish tab color load after my finish event,

What happened instead?

finish -> did a reset, and i still see last tab in green.

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