Skip to content

Commit

Permalink
added fix for multiple instances bug failing to stat the observer on …
Browse files Browse the repository at this point in the history
  • Loading branch information
buttflattery committed Jan 11, 2020
1 parent e839342 commit b87c677
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/FormWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,11 @@ public function registerScripts($pluginOptions, $isBs3, $jsOptionsPersistence)
//when the child HTMl elements are populated
//necessary for material themes and the button
//events for tabular row
$.formwizard.observer.start('#{$wizardContainerId}');
//added delay for multiple instances bug failing to stat the observer on the last formwizard
//since @1.4.6
setTimeout(function(){
$.formwizard.observer.start('#{$wizardContainerId}');
},1);
// Step show event
$.formwizard.helper.updateButtons('#{$wizardContainerId}');
Expand Down

0 comments on commit b87c677

Please sign in to comment.