rstaib / jquery-steps

A powerful jQuery wizard plugin that supports accessibility and HTML5.
http://www.jquery-steps.com
MIT License
1.69k stars 783 forks source link

Destroy method breaks other jQuery plugins #82

Open sergeykaikin opened 10 years ago

sergeykaikin commented 10 years ago

When $(wizardElement).steps("destroy") is being called it calls wizard.remove() method which removes all child elements data (http://api.jquery.com/jquery.data/). So if you are using some other jQuery plugins which use jQuery data (say, Tooltipster (https://github.com/iamceege/tooltipster/issues)) inside your wizard it will break their functionality. Work-around could be - destroy elements in the right order - start from child elements. But anyway it is a little bit frustrating.

rstaib commented 10 years ago

I will check that out!

faoiseamh commented 9 years ago

+1 to this. I've run into issues with this several times and tracked it down to jquery-steps after some painful tracing through jQuery.

Nikkelmann commented 9 years ago

+1.

In my case the destroy method completely removes the original element when using jQuery UI Dialog + jQuery Steps on the same element.

My work-around was to nest a div inside the dialog and use steps on that element.