jquery-steps icon indicating copy to clipboard operation
jquery-steps copied to clipboard

Other plugins not working.

Open AneeshRS opened this issue 10 years ago • 5 comments

This is a super cool plugin i have seen My problem is that, Other plugind like Chosen(chosen.jquery.js) and MultiSelect(jquery.multi-select.js ) are not working inside the form, after applying jquery-steps.If that code runs outside the form(the form which is used for jquery-steps), it works perfectly fine. Can you help with that.

AneeshRS avatar Jul 09 '15 11:07 AneeshRS

The problem is that the code use only raw html so all previously binded events to content is lost. There should be used wrapAll method.

See here

change the line in the render method

contentWrapper = $(wrapperTemplate.format(options.contentContainerTag, "content " + options.clearFixCssClass, wizard.html())),

to (updated - uses wrapInner instead of wrapAll)

contentWrapper = wizard.wrapInner(wrapperTemplate.format(options.contentContainerTag, "content " + options.clearFixCssClass, "")).children().first()

bambuca avatar Jul 17 '15 13:07 bambuca

Thank you, that line of code helped to fix bindings in Ember when using this plugin.

GendelfLugansk avatar Aug 28 '16 15:08 GendelfLugansk

Hey guys I faced this same issue with selectize.js. What worked was that I initialized other plugins after initializing the jquery.steps plugin. Saw the answer on SO http://stackoverflow.com/questions/31758647/chosen-not-working-inside-the-form-using-jquery-steps

SeunMatt avatar Feb 17 '17 13:02 SeunMatt

actually the problem is that jquery step changes

#Id of html elements

with its own custom id's for movement of elements , back and forth, check by inspect element you will find that element id have been changed, and Selector chain may be have been broke.

bikify avatar Dec 07 '18 03:12 bikify

The problem is that the code use only raw html so all previously binded events to content is lost. There should be used wrapAll method.

See here

change the line in the render method

contentWrapper = $(wrapperTemplate.format(options.contentContainerTag, "content " + options.clearFixCssClass, wizard.html())),

to (updated - uses wrapInner instead of wrapAll)

contentWrapper = wizard.wrapInner(wrapperTemplate.format(options.contentContainerTag, "content " + options.clearFixCssClass, "")).children().first()

not work with dropzone.js !

mohammadsalehnia avatar Oct 11 '19 10:10 mohammadsalehnia