jQuery-Smart-Wizard icon indicating copy to clipboard operation
jQuery-Smart-Wizard copied to clipboard

use with bootstrap modal, first step content wont show unless you click the button

Open JuneDeng2014 opened this issue 9 years ago • 8 comments

include a wizard div in bootstrap modal body, when open the modal, first step content wont show. I have to click the next button to the second step then click the previous button to show my first step content. if not include wizard in modal, it works fine.

JuneDeng2014 avatar Aug 02 '16 02:08 JuneDeng2014

I have the same issue. :(

badf007 avatar Aug 11 '16 20:08 badf007

Me too

jesusignazio avatar Oct 21 '16 19:10 jesusignazio

I have the same issue. Did someone solve the problem?

raonyvf avatar Nov 01 '16 22:11 raonyvf

same issue here. did someone already fixed this? or is there any other way to reset the wizard?

lolingz02 avatar Jan 17 '17 05:01 lolingz02

i found http://stackoverflow.com/questions/38345126/smart-wizard-does-not-load-first-step

OnySeven avatar Jan 24 '17 02:01 OnySeven

i escape this case by "onmouseenter" after call show modal. <div id="modal" onmouseenter="call_wizard()"> <div id="wizard" class="form_wizard wizard_horizontal"> <!-- step 1,2,3,4 --> </div> </div> <!--$('#modal').modal('show');--> <script>function call_wizard(){$('#wizard').smartWizard();}</script>

CrazyINTz avatar Aug 13 '17 15:08 CrazyINTz

call fixHeight function will solve it when content loaded dynamically. eg: $('#wizard').smartWizard('fixHeight');

smilence86 avatar Nov 07 '17 12:11 smilence86

I had the same problem but in my case i was putting the smartwizard in a modal.

To fixed this i did something like these:

//Function that open the modal $('.btnPedido').click(function () {

$('.bs-example-modal-lg').modal('show');    

});

//Event OnModalShow $(".bs-example-modal-lg").on('shown.bs.modal', function () {

$('#wizard').smartWizard(); 
$('.buttonNext').addClass('btn btn-success');
$('.buttonPrevious').addClass('btn btn-primary');
$('.buttonFinish').addClass('btn btn-default');

});

Works for me.

eusouofernando avatar Feb 15 '18 21:02 eusouofernando