pixelmatrix/uniform — Issue #208: uniform - generating nested divs on select elements, when called more than once
Author: gitmk
Created: 2012-02-02 05:16:18+00:00
State: open

I am trying to show a form using jQuery UI modal dialog (which is usually created once, but is hidden once closed, but not destroyed). The first time I open the dialog form, Uniform does it job and wraps all the select elements without any issues.

The second time when i open the dialog, to show different data, the wrapper div around the "select" element is repeated twice, and this goes on an on (nested wrapper div's). I am currently using the jQuery "replaceWith" api call to remove the "Uniform" generated div's so that my modal dialog shows them properly. This is only a workaround, and makes the whole web experience very slow in terms of response time.

Can someone suggest a simple solution to this issue? I believe this issue is similar to issue #142
Any help will be greatly appreciated.