Page 1 of 1

OnBeroreStepChanging Fires Twice with same 'newIndex'

PostPosted: 11 Nov 2016 16:39
by MCarver
While using the relatively new CGWizard I discovered what I consider a bug, or at least a behavior I don't understand. I first noticed it in my code and then confirmed it in the CG demo.

When switching sheets in the wizard, the OnBeforeStepChanging event fires, passing in the 'newIndex'. What I don't understand is why this event fires TWICE. And to complicate the issue, the second firing passes the same 'newIndex', which of course allows the same code (i.e. IF STATEMENT) to run as the first fire.

Is this a bug, or am I missing something? Please advise.

Regards,
Monte Carver

Re: OnBeroreStepChanging Fires Twice with same 'newIndex'

PostPosted: 11 Nov 2016 19:21
by Alexander Bulei
Hi MCarver,

I don't see this behavior here...
Please simulate it on attached project.

Best Regards.

Re: OnBeroreStepChanging Fires Twice with same 'newIndex'

PostPosted: 11 Nov 2016 20:42
by MCarver
In this revised demo, I simply extracted the content from the CG Demo (ie unit CGJQWizard).

This demo as does the public CG version obviously fires the event twice. Perhaps it is the use of
ManuallyNavigation:= True;

Please Advise,

Regards
Monte Carver

Re: OnBeroreStepChanging Fires Twice with same 'newIndex'

PostPosted: 16 Nov 2016 15:22
by MCarver
Any thoughts on this Post? That is the demo I provided?

Re: OnBeroreStepChanging Fires Twice with same 'newIndex'

PostPosted: 16 Nov 2016 15:32
by Alexander Bulei
Hi MCarver,

Fixed in jquery plugin, and will be available on next build.

Thanks.

Best Regards.